aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-09-14 13:06:53 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-08-23 13:15:16 +0200
commit9243dbb5599ed9e4796c0534cc2f77268fc27c8d (patch)
tree42f0c0770905931fc723150f6db3caa0720d7c09
parentf58794261e56a485dcf98b349fdc8ade4f9f4225 (diff)
downloadffmpeg-9243dbb5599ed9e4796c0534cc2f77268fc27c8d.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 b0331d8643..259e5a8f23 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -207,7 +207,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;