This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit da6a90b399a1e2a75f8ea2d6ff94e2f2a04b94cd Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Nov 3 01:14:50 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:37:02 2026 +0100 avcodec/gif: return the error of gif_image_write_image() A failed allocation of the remap buffer was ignored and a packet holding only the header returned. Found during the review of the fix for 8onJqhybXBbq. (cherry picked from commit b5ebb0d7a6da48cfa7d6eaef3fe27b2a8be144fd) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/gif.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 49dd64a2c5..e5a94426ab 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -501,8 +501,10 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } } - gif_image_write_image(avctx, &outbuf_ptr, end, palette, - pict->data[0], pict->linesize[0], pkt); + ret = gif_image_write_image(avctx, &outbuf_ptr, end, palette, + pict->data[0], pict->linesize[0], pkt); + if (ret < 0) + return ret; if (!s->last_frame && !s->image) { s->last_frame = av_frame_alloc(); if (!s->last_frame) -- 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]
