This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 283e08e8875c3ce5cecbf324e75dd04deaed8f62
Author:     James Almer <[email protected]>
AuthorDate: Wed Sep 16 23:22:44 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Mon Sep 21 21:23:33 2026 +0000

    avcodec/decode: ensure decoders using the simple API don't return 
AVERROR_EOF
    
    FFCodec->cb.decode() decoders should only return bytes consumed or actual
    decoding error codecs.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/decode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 22954b0626..94dfc06a84 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -477,8 +477,9 @@ static inline int decode_simple_internal(AVCodecContext 
*avctx, AVFrame *frame,
         av_frame_unref(frame);
 
     // FF_CODEC_CB_TYPE_DECODE decoders must not return AVERROR EAGAIN
+    // or AVERROR_EOF.
     // code later will add AVERROR(EAGAIN) to a pointer
-    av_assert0(consumed != AVERROR(EAGAIN));
+    av_assert0(consumed != AVERROR(EAGAIN) && consumed != AVERROR_EOF);
     if (consumed < 0)
         ret = consumed;
     if (consumed >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO)

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to