Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-04-18 09:40:48 +0300
committerJames Almer <jamrial@gmail.com>2015-04-18 20:15:07 +0300
commit778bac278869a98e93f23e8e2aa098782027b4e2 (patch)
tree4ef9661e1002f1c4e88099f619a260b4f649b900 /libavcodec/adpcm.c
parent979b77eec5db6965e3fb5d2a453437264a95cfa1 (diff)
adpcm: use av_clip_intp2()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 1c3fdc43d3..56d166025e 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)