Revision 63613fe6 libavformat/asfdec.c

View differences:

libavformat/asfdec.c
364 364
                /* This is true for all paletted codecs implemented in ffmpeg */
365 365
                if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
366 366
                    st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
367
#ifdef WORDS_BIGENDIAN
367
#if HAVE_BIGENDIAN
368 368
                    for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
369 369
                        st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]);
370 370
#else

Also available in: Unified diff