Browse Source

avcodec/mlpdec: Fix: runtime error: left shift of negative value -8

Fixes: 1658/clusterfuzz-testcase-minimized-4889937130291200

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Michael Niedermayer 8 years ago
parent
commit
25c81e4b73
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mlpdec.c

+ 1
- 1
libavcodec/mlpdec.c View File

@@ -759,7 +759,7 @@ static int read_matrix_params(MLPDecodeContext *m, unsigned int substr, GetBitCo
if (get_bits1(gbp))
coeff_val = get_sbits(gbp, frac_bits + 2);

s->matrix_coeff[mat][ch] = coeff_val << (14 - frac_bits);
s->matrix_coeff[mat][ch] = coeff_val * (1 << (14 - frac_bits));
}

if (s->noise_type)


Loading…
Cancel
Save