mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-01-12 00:06:51 +08: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:
@@ -51,7 +51,7 @@ static av_cold int ftr_init(AVCodecContext *avctx)
|
||||
|
||||
codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
|
||||
if (!codec)
|
||||
return AVERROR_BUG;
|
||||
return AVERROR_DECODER_NOT_FOUND;
|
||||
|
||||
for (int i = 0; i < s->nb_context; i++) {
|
||||
s->aac_avctx[i] = avcodec_alloc_context3(codec);
|
||||
|
||||
Reference in New Issue
Block a user