# HG changeset patch # User diego # Date 1277744067 0 # Node ID 883760a427996e9639dffc77a9793c9956ed6fed # Parent 2945ef80a0adf6788e67711ef9207a4b79e80d0e Place swap_palette declaration under the same #ifdef as its usage; fixes: libmpcodecs/vd_ffmpeg.c:784: warning: 'swap_palette' defined but not used diff -r 2945ef80a0ad -r 883760a42799 libmpcodecs/vd_ffmpeg.c --- 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){