Commit 33b0107a04 for ffmpeg
commit 33b0107a04b9ec361d76ae148cb6683964f88073
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat Oct 24 05:47:37 2026 +0200
avcodec/libxevd: return EAGAIN when an access unit produces no frame
An access unit that produces no picture, such as one holding only
parameter sets or one of at most 4 bytes, left the NAL unit loop without
a frame and returned 0, which the generic decode code takes for a
decoded frame and rejects with an assertion failure. Return EAGAIN like
the delayed frame path does.
Fixes: assertion failure
Fixes: XF1FdBsTa8zq (AISLE-2026-0150-00628)
Assertion failure Replicated through UnModified FFmpeg
Found-by: Joshua Rogers <joshua.rogers@aisle.com>
diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index 7db7ec6dc3..3913e223d0 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -458,7 +458,7 @@ static int libxevd_receive_frame(AVCodecContext *avctx, AVFrame *frame)
}
}
- return ret;
+ return AVERROR(EAGAIN);
}
/**