Revision 288b62b1

View differences:

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

Also available in: Unified diff