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

Git pushed a commit to branch master
in repository ffmpeg.

commit b5ebb0d7a6da48cfa7d6eaef3fe27b2a8be144fd
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 01:14:50 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 3 21:30:40 2026 +0000

    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.
---
 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]

Reply via email to