You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
gif: reindent after previous commits.
This commit is contained in:
@@ -144,7 +144,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
|
|||||||
bytestream_put_le16(bytestream, height);
|
bytestream_put_le16(bytestream, height);
|
||||||
|
|
||||||
if (!palette) {
|
if (!palette) {
|
||||||
bytestream_put_byte(bytestream, 0x00); /* flags */
|
bytestream_put_byte(bytestream, 0x00); /* flags */
|
||||||
} else {
|
} else {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
bytestream_put_byte(bytestream, 1<<7 | 0x7); /* flags */
|
bytestream_put_byte(bytestream, 1<<7 | 0x7); /* flags */
|
||||||
|
@@ -63,10 +63,9 @@ static int gif_image_write_header(AVIOContext *pb, int width, int height,
|
|||||||
avio_wl16(pb, height);
|
avio_wl16(pb, height);
|
||||||
|
|
||||||
if (palette) {
|
if (palette) {
|
||||||
/* TODO: reindent */
|
avio_w8(pb, 0xf7); /* flags: global clut, 256 entries */
|
||||||
avio_w8(pb, 0xf7); /* flags: global clut, 256 entries */
|
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++) {
|
||||||
v = palette[i];
|
v = palette[i];
|
||||||
avio_w8(pb, (v >> 16) & 0xff);
|
avio_w8(pb, (v >> 16) & 0xff);
|
||||||
|
Reference in New Issue
Block a user