Mercurial > mplayer.hg
changeset 28299:8baa89b228c5
revert #ifdef WORDS_BIGENDIAN => #if WORDS_BIGENDIAN changes from r28331
author | gpoirier |
---|---|
date | Fri, 16 Jan 2009 13:19:29 +0000 |
parents | a7124a264ea6 |
children | c7dcb679ae70 |
files | libmpcodecs/ad_hwac3.c libmpcodecs/vd_ffmpeg.c libmpcodecs/vf.c libmpcodecs/vf_scale.c |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c Fri Jan 16 12:37:56 2009 +0000 +++ b/libmpcodecs/ad_hwac3.c Fri Jan 16 13:19:29 2009 +0000 @@ -179,7 +179,7 @@ buf16[2] = 0x0001; // data-type ac3 buf16[2] |= (sh_audio->a_in_buffer[5] & 0x7) << 8; // bsmod buf16[3] = len << 3; // number of bits in payload -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN memcpy(buf + 8, sh_audio->a_in_buffer, len); #else swab(sh_audio->a_in_buffer, buf + 8, len); @@ -523,7 +523,7 @@ buf16[3] = fsize << 3; if (!convert_16bits) { -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN /* BE stream */ if (indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f) #else
--- a/libmpcodecs/vd_ffmpeg.c Fri Jan 16 12:37:56 2009 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Fri Jan 16 13:19:29 2009 +0000 @@ -892,7 +892,7 @@ mpi->stride[2]*=2; } -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN // FIXME: this might cause problems for buffers with FF_BUFFER_HINTS_PRESERVE if (mpi->bpp == 8) swap_palette(mpi->planes[1]);
--- a/libmpcodecs/vf.c Fri Jan 16 12:37:56 2009 +0000 +++ b/libmpcodecs/vf.c Fri Jan 16 13:19:29 2009 +0000 @@ -231,7 +231,7 @@ unsigned int* p=(unsigned int*) dst; int size=(mpi->bpp>>3)*w/4; int i; -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN #define CLEAR_PACKEDYUV_PATTERN 0x00800080 #define CLEAR_PACKEDYUV_PATTERN_SWAPPED 0x80008000 #else
--- a/libmpcodecs/vf_scale.c Fri Jan 16 12:37:56 2009 +0000 +++ b/libmpcodecs/vf_scale.c Fri Jan 16 13:19:29 2009 +0000 @@ -322,7 +322,7 @@ static void scale(struct SwsContext *sws1, struct SwsContext *sws2, uint8_t *src[3], int src_stride[3], int y, int h, uint8_t *dst[3], int dst_stride[3], int interlaced){ uint8_t *src2[3]={src[0], src[1], src[2]}; -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN uint32_t pal2[256]; if (src[1] && !src[2]){ int i;