Commit b6408ffc authored by Clément Bœsch's avatar Clément Bœsch

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

parent 91a5b4d4
...@@ -48,7 +48,7 @@ static int gif_image_write_header(AVIOContext *pb, int width, int height, ...@@ -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, 0x1f); /* background color index */
avio_w8(pb, 0); /* aspect ratio */ avio_w8(pb, 0); /* aspect ratio */
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
const uint32_t v = palette[i]; const uint32_t v = palette[i] & 0xffffff;
avio_wb24(pb, v); avio_wb24(pb, v);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment