[FFmpeg-devel] [PATCH 2/2] adpcm: use av_clip_intp2()
James Almer
jamrial at gmail.com
Sat Apr 18 08:44:11 CEST 2015
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/adpcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.3.5
More information about the ffmpeg-devel
mailing list