diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 01:13:17 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 01:13:17 +0200 |
commit | b6408ffc4534aa754942a39f763af509c05f33a4 (patch) | |
tree | 4476546014706df949d463d17dc367acb9f88228 /libavformat/gif.c | |
parent | 91a5b4d480a0b3271ae147c5cb130c8b56233f1f (diff) | |
download | ffmpeg-b6408ffc4534aa754942a39f763af509c05f33a4.tar.gz |
lavf/gif: fix assert in avio API after dfb3231.
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r-- | libavformat/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c index 5522ace8fb..b4a61f5814 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 { |