diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2015-02-20 01:35:35 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-02-21 00:54:40 +0100 |
commit | 9abc80f1ed673141326341e26a05c3e1f78576d0 (patch) | |
tree | ca91fca7b76eec0d98a2b420f0220ec0df13a239 /libavcodec/g726.c | |
parent | 76ce9bd8e26dcb3652240a1072840ff4011d7cdc (diff) | |
download | ffmpeg-9abc80f1ed673141326341e26a05c3e1f78576d0.tar.gz |
libavcodec: Make use of av_clip functions
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r-- | libavcodec/g726.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 62aeb797e8..9ad91f238e 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -218,7 +218,7 @@ static int16_t g726_decode(G726Context* c, int I) c->b[i] = 0; } else { /* This is a bit crazy, but it really is +255 not +256 */ - fa1 = av_clip((-c->a[0]*c->pk[0]*pk0)>>5, -256, 255); + fa1 = av_clip_intp2((-c->a[0]*c->pk[0]*pk0)>>5, 8); c->a[1] += 128*pk0*c->pk[1] + fa1 - (c->a[1]>>7); c->a[1] = av_clip(c->a[1], -12288, 12288); |