1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/ftr: Replace AVERROR_BUG that can be triggered

Return AVERROR_DECODER_NOT_FOUND.
(This can be triggered because this decoder tries to be
generic and work with multiple underlying AAC decoders,
so that there is no configure dependency for any decoder.)

Reviewed-by: Kacper Michajlow <kasper93@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-04-21 19:16:31 +02:00
parent 0279eb9c93
commit 40544b4854

View File

@ -51,7 +51,7 @@ static av_cold int ftr_init(AVCodecContext *avctx)
codec = avcodec_find_decoder(AV_CODEC_ID_AAC); codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
if (!codec) if (!codec)
return AVERROR_BUG; return AVERROR_DECODER_NOT_FOUND;
for (int i = 0; i < s->nb_context; i++) { for (int i = 0; i < s->nb_context; i++) {
s->aac_avctx[i] = avcodec_alloc_context3(codec); s->aac_avctx[i] = avcodec_alloc_context3(codec);