Revision 63613fe6 libavformat/avidec.c

View differences:

libavformat/avidec.c
498 498
                    /* This is true for all paletted codecs implemented in FFmpeg. */
499 499
                    if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
500 500
                        st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
501
#ifdef WORDS_BIGENDIAN
501
#if HAVE_BIGENDIAN
502 502
                        for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
503 503
                            st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]);
504 504
#else

Also available in: Unified diff