From 53efb2fa09c0ae966e4afa88294130c841b2cf55 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 30 Apr 2013 13:13:40 +0200 Subject: [PATCH] gif: Fix little endian specific code Signed-off-by: Michael Niedermayer --- libavcodec/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 52c1d44517..7a5e287c57 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -163,7 +163,7 @@ static int gif_image_write_image(AVCodecContext *avctx, if (!pal_exdata) return AVERROR(ENOMEM); memcpy(pal_exdata, s->palette, AVPALETTE_SIZE); - pal_exdata[trans*4 + 3] = 0x00; + pal_exdata[trans*4 + 3*!HAVE_BIGENDIAN] = 0x00; } }