Mercurial > mplayer.hg
changeset 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 | c9ebd748dfc8 |
children | 7ae298e3ba15 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Tue Jun 29 08:33:39 2010 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Jun 29 12:13:57 2010 +0000 @@ -780,15 +780,13 @@ 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){