[MPlayer-cvslog] r31584 - trunk/libmpcodecs/vd_ffmpeg.c
diego
subversion at mplayerhq.hu
Mon Jun 28 18:54:28 CEST 2010
Author: diego
Date: Mon Jun 28 18:54:27 2010
New Revision: 31584
Log:
Place swap_palette declaration under the same #ifdef as its usage; fixes:
libmpcodecs/vd_ffmpeg.c:784: warning: 'swap_palette' defined but not used
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Mon Jun 28 18:45:47 2010 (r31583)
+++ trunk/libmpcodecs/vd_ffmpeg.c Mon Jun 28 18:54:27 2010 (r31584)
@@ -780,6 +780,7 @@ typedef struct dp_hdr_s {
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 @@ static void swap_palette(void *pal)
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){
More information about the MPlayer-cvslog
mailing list