Commit 42982a9b8a for ffmpeg
commit 42982a9b8af63d5462951bba6a31be48fc8221d9
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat Oct 10 06:20:43 2026 +0200
avcodec/ftr: reject sub-decoder output that yields no frame
Assertion failure Replicated through UnModified FFmpeg
Found during triage/review of OSS-Fuzz issue 538301564
Fixes: assertion failure
Fixes: Z2pdJZ9KWkmq/ftr-idend.wav / mkftr.py
Fixes: Z2pdJZ9KWkmq
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
diff --git a/libavcodec/ftr.c b/libavcodec/ftr.c
index 31aef538f9..805edf13d7 100644
--- a/libavcodec/ftr.c
+++ b/libavcodec/ftr.c
@@ -132,6 +132,8 @@ static int ftr_decode_frame(AVCodecContext *avctx, AVFrame *frame,
}
ret = avcodec_receive_frame(codec_avctx, s->frame);
+ if (ret == AVERROR(EAGAIN))
+ return AVERROR_INVALIDDATA;
if (ret < 0)
return ret;