This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit ae9e69781b3cf594d374aea5be9875886cfc8be0 Author: James Almer <[email protected]> AuthorDate: Wed Sep 16 23:20:55 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Mon Sep 21 21:23:33 2026 +0000 avcodec/gifdec: 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/gifdec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index ae45eb0f6d..4f0f42e315 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -506,8 +506,11 @@ static int gif_decode_frame(AVCodecContext *avctx, AVFrame *rframe, return ret; ret = gif_parse_next_image(s, s->frame); - if (ret < 0) + if (ret < 0) { + if (ret == AVERROR_EOF) + ret = bytestream2_tell(&s->gb); return ret; + } if ((ret = av_frame_ref(rframe, s->frame)) < 0) return ret; -- 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]
