diff options
author | Mans Rullgard <mans@mansr.com> | 2011-02-14 01:10:45 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-15 01:58:21 +0300 |
commit | 288b62b1b9a7b0ce8d167367791a09419eb45ccb (patch) | |
tree | 04cb860becae21468e88c00a984562f5e8a4837b | |
parent | 7539a1fee2c4935eb3318d625f881df85f2c9c04 (diff) |
asfdec: fix build for big endian targets
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit aabc2682fcb70417abda0e78d27a425269a82fc8)
-rw-r--r-- | libavformat/asfdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 8e712a6c5b..cab90c0e3b 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -361,6 +361,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++) |