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

Mans Rullgard git
Tue Feb 15 00:59:10 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Feb 13 22:10:45 2011 +0000| [288b62b1b9a7b0ce8d167367791a09419eb45ccb] | committer: Michael Niedermayer

asfdec: fix build for big endian targets

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit aabc2682fcb70417abda0e78d27a425269a82fc8)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=288b62b1b9a7b0ce8d167367791a09419eb45ccb
---

 libavformat/asfdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 8e712a6..cab90c0 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++)




More information about the ffmpeg-cvslog mailing list