[FFmpeg-cvslog] gif: Fix little endian specific code

Michael Niedermayer git at videolan.org
Tue Apr 30 13:42:51 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 30 13:13:40 2013 +0200| [53efb2fa09c0ae966e4afa88294130c841b2cf55] | committer: Michael Niedermayer

gif: Fix little endian specific code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=53efb2fa09c0ae966e4afa88294130c841b2cf55
---

 libavcodec/gif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 52c1d44..7a5e287 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;
         }
     }
 



More information about the ffmpeg-cvslog mailing list