changeset 31518:883760a42799

Place swap_palette declaration under the same #ifdef as its usage; fixes: libmpcodecs/vd_ffmpeg.c:784: warning: 'swap_palette' defined but not used
author diego
date Mon, 28 Jun 2010 16:54:27 +0000
parents 2945ef80a0ad
children c9ebd748dfc8
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Mon Jun 28 16:45:47 2010 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Mon Jun 28 16:54:27 2010 +0000
@@ -780,6 +780,7 @@
     uint32_t chunktab;        // offset to chunk offset array
 } dp_hdr_t;
 
+#if HAVE_BIGENDIAN
 static void swap_palette(void *pal)
 {
     int i;
@@ -787,6 +788,7 @@
     for (i = 0; i < AVPALETTE_COUNT; i++)
         p[i] = le2me_32(p[i]);
 }
+#endif
 
 // decode a frame
 static mp_image_t *decode(sh_video_t *sh, void *data, int len, int flags){