[FFmpeg-cvslog] lavf/gif: fix assert in avio API after dfb3231.

Clément Bœsch git at videolan.org
Thu Apr 18 01:15:24 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 18 01:13:17 2013 +0200| [b6408ffc4534aa754942a39f763af509c05f33a4] | committer: Clément Bœsch

lavf/gif: fix assert in avio API after dfb3231.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6408ffc4534aa754942a39f763af509c05f33a4
---

 libavformat/gif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/gif.c b/libavformat/gif.c
index 5522ace..b4a61f5 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -48,7 +48,7 @@ static int gif_image_write_header(AVIOContext *pb, int width, int height,
         avio_w8(pb, 0x1f); /* background color index */
         avio_w8(pb, 0);    /* aspect ratio */
         for (i = 0; i < 256; i++) {
-            const uint32_t v = palette[i];
+            const uint32_t v = palette[i] & 0xffffff;
             avio_wb24(pb, v);
         }
     } else {



More information about the ffmpeg-cvslog mailing list