Revision 2d2b5a14 libavformat/avidec.c

View differences:

libavformat/avidec.c
588 588

  
589 589
                    /* Extract palette from extradata if bpp <= 8. */
590 590
                    /* This code assumes that extradata contains only palette. */
591
                    /* This is true for all paletted codecs implemented in Libav. */
591
                    /* This is true for all paletted codecs implemented in FFmpeg. */
592 592
                    if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
593 593
#if HAVE_BIGENDIAN
594 594
                        for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)

Also available in: Unified diff