OSDN Git Service

asfdec: fix build for big endian targets
authorMans Rullgard <mans@mansr.com>
Sun, 13 Feb 2011 22:10:45 +0000 (22:10 +0000)
committerMans Rullgard <mans@mansr.com>
Sun, 13 Feb 2011 22:10:45 +0000 (22:10 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/asfdec.c

index 2d43ac2..8d413e4 100644 (file)
@@ -362,6 +362,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size)
         /* This code assumes that extradata contains only palette */
         /* This is true for all paletted codecs implemented in ffmpeg */
         if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
+            int av_unused i;
             st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
 #if HAVE_BIGENDIAN
             for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)