Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
31517:2945ef80a0ad | 31518:883760a42799 |
---|---|
778 uint32_t timestamp; // timestamp from packet header | 778 uint32_t timestamp; // timestamp from packet header |
779 uint32_t len; // length of actual data | 779 uint32_t len; // length of actual data |
780 uint32_t chunktab; // offset to chunk offset array | 780 uint32_t chunktab; // offset to chunk offset array |
781 } dp_hdr_t; | 781 } dp_hdr_t; |
782 | 782 |
783 #if HAVE_BIGENDIAN | |
783 static void swap_palette(void *pal) | 784 static void swap_palette(void *pal) |
784 { | 785 { |
785 int i; | 786 int i; |
786 uint32_t *p = pal; | 787 uint32_t *p = pal; |
787 for (i = 0; i < AVPALETTE_COUNT; i++) | 788 for (i = 0; i < AVPALETTE_COUNT; i++) |
788 p[i] = le2me_32(p[i]); | 789 p[i] = le2me_32(p[i]); |
789 } | 790 } |
791 #endif | |
790 | 792 |
791 // decode a frame | 793 // decode a frame |
792 static mp_image_t *decode(sh_video_t *sh, void *data, int len, int flags){ | 794 static mp_image_t *decode(sh_video_t *sh, void *data, int len, int flags){ |
793 int got_picture=0; | 795 int got_picture=0; |
794 int ret; | 796 int ret; |