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.)
Unified · Split
| @@ -51,7 +51,7 @@ static av_cold int ftr_init(AVCodecContext *avctx) · 50 unmodified lines | ||
| 51 | 51 | |
| 52 | 52 | codec = avcodec_find_decoder(AV_CODEC_ID_AAC); |
| 53 | 53 | if (!codec) |
| 54 | − return AVERROR_BUG; | |
| 54 | + return AVERROR_DECODER_NOT_FOUND; | |
| 55 | 55 | |
| 56 | 56 | for (int i = 0; i < s->nb_context; i++) { |
| 57 | 57 | s->aac_avctx[i] = avcodec_alloc_context3(codec); |