[FFmpeg-cvslog] adpcm: use av_clip_intp2()
James Almer
git at videolan.org
Sat Apr 18 19:20:11 CEST 2015
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Apr 18 03:40:48 2015 -0300| [778bac278869a98e93f23e8e2aa098782027b4e2] | committer: James Almer
adpcm: use av_clip_intp2()
Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=778bac278869a98e93f23e8e2aa098782027b4e2
---
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)
More information about the ffmpeg-cvslog
mailing list