[MPlayer-cvslog] r31586 - trunk/libmpcodecs/vd_ffmpeg.c

diego subversion at mplayerhq.hu
Tue Jun 29 14:13:57 CEST 2010


Author: diego
Date: Tue Jun 29 14:13:57 2010
New Revision: 31586

Log:
Replace HAVE_BIGENDIAN #ifdef around swap_palette() by av_unused attribute.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Tue Jun 29 10:33:39 2010	(r31585)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Tue Jun 29 14:13:57 2010	(r31586)
@@ -780,15 +780,13 @@ 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)
+static av_unused void swap_palette(void *pal)
 {
     int i;
     uint32_t *p = 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