aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-09-14 13:06:53 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-18 00:18:11 +0200
commitf8dcc9e7189709c68829b0fa7a98941fdf916d68 (patch)
tree2a9775e18d2eee226eb06db08c54a9f9967e7f3c
parent175a95bfddc5a6fb69d329e24fd7157a2e1f2099 (diff)
downloadffmpeg-f8dcc9e7189709c68829b0fa7a98941fdf916d68.tar.gz
avcodec/g726: Add missing ADDB output mask
Fixes: 1.poc Fixes out of array read Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a5af1240fce845f645440364c1335e0f8e44ee6c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/g726.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index c3d018fda6..f3de9e715d 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -206,7 +206,7 @@ static int16_t g726_decode(G726Context* c, int I)
if (I_sig) /* get the sign */
dq = -dq;
- re_signal = c->se + dq;
+ re_signal = (int16_t)(c->se + dq);
/* Update second order predictor coefficient A2 and A1 */
pk0 = (c->sez + dq) ? sgn(c->sez + dq) : 0;