Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 31520:9f934200bf9e
Replace HAVE_BIGENDIAN #ifdef around swap_palette() by av_unused attribute.
author | diego |
---|---|
date | Tue, 29 Jun 2010 12:13:57 +0000 |
parents | 883760a42799 |
children | 0ccd18ec15c3 |
comparison
equal
deleted
inserted
replaced
31519:c9ebd748dfc8 | 31520:9f934200bf9e |
---|---|
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 av_unused void swap_palette(void *pal) |
784 static void swap_palette(void *pal) | |
785 { | 784 { |
786 int i; | 785 int i; |
787 uint32_t *p = pal; | 786 uint32_t *p = pal; |
788 for (i = 0; i < AVPALETTE_COUNT; i++) | 787 for (i = 0; i < AVPALETTE_COUNT; i++) |
789 p[i] = le2me_32(p[i]); | 788 p[i] = le2me_32(p[i]); |
790 } | 789 } |
791 #endif | |
792 | 790 |
793 // decode a frame | 791 // decode a frame |
794 static mp_image_t *decode(sh_video_t *sh, void *data, int len, int flags){ | 792 static mp_image_t *decode(sh_video_t *sh, void *data, int len, int flags){ |
795 int got_picture=0; | 793 int got_picture=0; |
796 int ret; | 794 int ret; |