History

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.)

Andreas Rheinhardt committed 1 year ago

Commit 40544b41 parent 0279eb91 file · +1 −1Browse files

Unified · Split

libavcodec/ftr.c+1−1
@@ -51,7 +51,7 @@ static av_cold int ftr_init(AVCodecContext *avctx) · 50 unmodified lines
5151
5252 codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
5353 if (!codec)
54− return AVERROR_BUG;
54+ return AVERROR_DECODER_NOT_FOUND;
5555
5656 for (int i = 0; i < s->nb_context; i++) {
5757 s->aac_avctx[i] = avcodec_alloc_context3(codec);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t