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:
parent
0279eb9c93
commit
40544b4854
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue