diff libmpcodecs/vd_ffmpeg.c @ 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 c92b055ebec7
children 9f934200bf9e
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){