diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-14 13:06:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-14 15:50:07 +0200 |
commit | a5af1240fce845f645440364c1335e0f8e44ee6c (patch) | |
tree | 9b3c12e8a33d1c4188c2c24566d55c41fdd18f41 /libavcodec/g726.c | |
parent | ecc04b4f2f29ac676e6c1d1ebf20ec45f5385f1e (diff) | |
download | ffmpeg-a5af1240fce845f645440364c1335e0f8e44ee6c.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>
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 c7d138e4b5..ca7f856eac 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; |