Commit 778bac27 authored by James Almer's avatar James Almer

adpcm: use av_clip_intp2()

Reviewed-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 979b77ee
...@@ -1498,7 +1498,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, ...@@ -1498,7 +1498,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
prev = 0; prev = 0;
} }
prev = av_clip((prev + 0x20) >> 6, -0x200000, 0x1fffff); prev = av_clip_intp2((prev + 0x20) >> 6, 21);
byte = bytestream2_get_byteu(&gb); byte = bytestream2_get_byteu(&gb);
if (!channel) if (!channel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment