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++)