diff options
author | Francesco Lavra <francescolavra@interfree.it> | 2009-11-09 12:11:35 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-11-09 12:11:35 +0300 |
commit | 91cc5d37679b112d03c20d053905c3941c0a8992 (patch) | |
tree | 63de7240f7f22da61839db5cc9d50cc22562a59a /libavcodec/pcm.c | |
parent | 66ddc150f0231889f9a05f71739ff1a40db9a01d (diff) |
Move ff_reverse in libavcodec to av_reverse in libavutil.
Patch by Francesco Lavra, francescolavra interfree it
Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index a0ce9f5783..572ee947e5 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -25,7 +25,7 @@ */ #include "avcodec.h" -#include "get_bits.h" // for ff_reverse +#include "libavutil/common.h" /* for av_reverse */ #include "bytestream.h" #define MAX_CHANNELS 64 @@ -194,8 +194,8 @@ static int pcm_encode_frame(AVCodecContext *avctx, break; case CODEC_ID_PCM_S24DAUD: for(;n>0;n--) { - uint32_t tmp = ff_reverse[(*samples >> 8) & 0xff] + - (ff_reverse[*samples & 0xff] << 8); + uint32_t tmp = av_reverse[(*samples >> 8) & 0xff] + + (av_reverse[*samples & 0xff] << 8); tmp <<= 4; // sync flags would go here bytestream_put_be24(&dst, tmp); samples++; @@ -396,8 +396,8 @@ static int pcm_decode_frame(AVCodecContext *avctx, for(;n>0;n--) { uint32_t v = bytestream_get_be24(&src); v >>= 4; // sync flags are here - *samples++ = ff_reverse[(v >> 8) & 0xff] + - (ff_reverse[v & 0xff] << 8); + *samples++ = av_reverse[(v >> 8) & 0xff] + + (av_reverse[v & 0xff] << 8); } break; case CODEC_ID_PCM_S16LE_PLANAR: |