Browse Source

avcodec/aacdec: Fix PCE channel_layout verification

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Nicolas Sugino Michael Niedermayer 8 years ago
parent
commit
df884e038f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aacdec_template.c

+ 1
- 1
libavcodec/aacdec_template.c View File

@@ -763,7 +763,7 @@ static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac,
if (get_bits1(gb))
skip_bits(gb, 3); // mixdown_coeff_index and pseudo_surround

if (get_bits_left(gb) < 4 * (num_front + num_side + num_back + num_lfe + num_assoc_data + num_cc)) {
if (get_bits_left(gb) < 5 * (num_front + num_side + num_back + num_cc) + 4 *(num_lfe + num_assoc_data + num_cc)) {
av_log(avctx, AV_LOG_ERROR, "decode_pce: " overread_err);
return -1;
}


Loading…
Cancel
Save