changeset 5108:44a0fab134a9 libavformat

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents d5972242053c
children 293c03f0d47f
files asfdec.c avidec.c flvdec.c mtv.c raw.c
diffstat 5 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Fri Jul 24 21:28:44 2009 +0000
+++ b/asfdec.c	Sun Jul 26 12:20:04 2009 +0000
@@ -364,7 +364,7 @@
                 /* This is true for all paletted codecs implemented in ffmpeg */
                 if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
                     st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
                     for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
                         st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]);
 #else
--- a/avidec.c	Fri Jul 24 21:28:44 2009 +0000
+++ b/avidec.c	Sun Jul 26 12:20:04 2009 +0000
@@ -498,7 +498,7 @@
                     /* This is true for all paletted codecs implemented in FFmpeg. */
                     if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
                         st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
                         for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
                             st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]);
 #else
--- a/flvdec.c	Fri Jul 24 21:28:44 2009 +0000
+++ b/flvdec.c	Sun Jul 26 12:20:04 2009 +0000
@@ -77,7 +77,7 @@
         //no distinction between S16 and S8 PCM codec flags
         case FLV_CODECID_PCM:
             acodec->codec_id = acodec->bits_per_coded_sample == 8 ? CODEC_ID_PCM_S8 :
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
                                 CODEC_ID_PCM_S16BE;
 #else
                                 CODEC_ID_PCM_S16LE;
--- a/mtv.c	Fri Jul 24 21:28:44 2009 +0000
+++ b/mtv.c	Sun Jul 26 12:20:04 2009 +0000
@@ -129,7 +129,7 @@
     MTVDemuxContext *mtv = s->priv_data;
     ByteIOContext *pb = s->pb;
     int ret;
-#ifndef WORDS_BIGENDIAN
+#if !HAVE_BIGENDIAN
     int i;
 #endif
 
@@ -150,7 +150,7 @@
         if(ret != mtv->img_segment_size)
             return AVERROR(EIO);
 
-#ifndef WORDS_BIGENDIAN
+#if !HAVE_BIGENDIAN
 
         /* pkt->data is GGGRRRR BBBBBGGG
          * and we need RRRRRGGG GGGBBBBB
--- a/raw.c	Fri Jul 24 21:28:44 2009 +0000
+++ b/raw.c	Sun Jul 26 12:20:04 2009 +0000
@@ -1103,7 +1103,7 @@
     NULL,
     NULL,
     0,
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
     CODEC_ID_PCM_S16BE,
 #else
     CODEC_ID_PCM_S16LE,
@@ -1232,7 +1232,7 @@
 #define PCMDEF(name, long_name, ext, codec)
 #endif
 
-#ifdef WORDS_BIGENDIAN
+#if HAVE_BIGENDIAN
 #define BE_DEF(s) s
 #define LE_DEF(s) NULL
 #else