diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 13:13:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 13:35:14 +0200 |
commit | 53efb2fa09c0ae966e4afa88294130c841b2cf55 (patch) | |
tree | 04dbea54266aceb5323234b3969fe4cd191b0fb8 | |
parent | 147a45fca4d8c918714b550048786a9d27e40e43 (diff) | |
download | ffmpeg-53efb2fa09c0ae966e4afa88294130c841b2cf55.tar.gz |
gif: Fix little endian specific code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |