Commit 53efb2fa authored by Michael Niedermayer's avatar Michael Niedermayer

gif: Fix little endian specific code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 147a45fc
...@@ -163,7 +163,7 @@ static int gif_image_write_image(AVCodecContext *avctx, ...@@ -163,7 +163,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
if (!pal_exdata) if (!pal_exdata)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
memcpy(pal_exdata, s->palette, AVPALETTE_SIZE); memcpy(pal_exdata, s->palette, AVPALETTE_SIZE);
pal_exdata[trans*4 + 3] = 0x00; pal_exdata[trans*4 + 3*!HAVE_BIGENDIAN] = 0x00;
} }
} }
......
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