diff options
author | James Almer <jamrial@gmail.com> | 2015-04-18 03:40:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-18 14:15:07 -0300 |
commit | 778bac278869a98e93f23e8e2aa098782027b4e2 (patch) | |
tree | 4ef9661e1002f1c4e88099f619a260b4f649b900 /libavcodec | |
parent | 979b77eec5db6965e3fb5d2a453437264a95cfa1 (diff) | |
download | ffmpeg-streaming-778bac278869a98e93f23e8e2aa098782027b4e2.zip ffmpeg-streaming-778bac278869a98e93f23e8e2aa098782027b4e2.tar.gz |
adpcm: use av_clip_intp2()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/adpcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 1c3fdc4..56d1660 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1498,7 +1498,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, prev = 0; } - prev = av_clip((prev + 0x20) >> 6, -0x200000, 0x1fffff); + prev = av_clip_intp2((prev + 0x20) >> 6, 21); byte = bytestream2_get_byteu(&gb); if (!channel) |