diff options
author | Måns Rullgård <mans@mansr.com> | 2009-07-26 12:20:04 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-07-26 12:20:04 +0000 |
commit | 63613fe615160671b394a232c1a3736319a6a8ec (patch) | |
tree | 4e85211d5388b91b47facca7700512abdd36446d /libavcodec/pcm.c | |
parent | 84c04e25196a59694abec3ae17af476994bc5ce8 (diff) | |
download | ffmpeg-63613fe615160671b394a232c1a3736319a6a8ec.tar.gz |
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 95e33fd607..8530cd689a 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -214,7 +214,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, *dst++ = v - 128; } break; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN case CODEC_ID_PCM_F64LE: ENCODE(int64_t, le64, samples, dst, n, 0, 0) break; @@ -244,7 +244,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, case CODEC_ID_PCM_F32LE: case CODEC_ID_PCM_S32LE: case CODEC_ID_PCM_S16LE: -#endif /* WORDS_BIGENDIAN */ +#endif /* HAVE_BIGENDIAN */ case CODEC_ID_PCM_U8: memcpy(dst, samples, n*sample_size); dst += n*sample_size; @@ -422,7 +422,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, } samples= (short*)dstu8; break; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN case CODEC_ID_PCM_F64LE: DECODE(int64_t, le64, src, samples, n, 0, 0) break; @@ -452,7 +452,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, case CODEC_ID_PCM_F32LE: case CODEC_ID_PCM_S32LE: case CODEC_ID_PCM_S16LE: -#endif /* WORDS_BIGENDIAN */ +#endif /* HAVE_BIGENDIAN */ case CODEC_ID_PCM_U8: memcpy(samples, src, n*sample_size); src += n*sample_size; |