mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-21 06:16:59 +00:00
adpcm: use av_clip_intp2()
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
979b77eec5
commit
778bac2788
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user