Revision aabc2682

View differences:

libavformat/asfdec.c
362 362
        /* This code assumes that extradata contains only palette */
363 363
        /* This is true for all paletted codecs implemented in ffmpeg */
364 364
        if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
365
            int av_unused i;
365 366
            st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
366 367
#if HAVE_BIGENDIAN
367 368
            for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)

Also available in: Unified diff