[FFmpeg-devel] [PATCH] asfdec: fix build for big endian targets

Mans Rullgard mans
Sun Feb 13 23:10:49 CET 2011


Signed-off-by: Mans Rullgard <mans at mansr.com>
---
 libavformat/asfdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 2d43ac2..8d413e4 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -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++)
-- 
1.7.4




More information about the ffmpeg-devel mailing list