Unified · Split
| @@ -763,7 +763,7 @@ static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, · 762 unmodified lines | ||
| 763 | 763 | if (get_bits1(gb)) |
| 764 | 764 | skip_bits(gb, 3); // mixdown_coeff_index and pseudo_surround |
| 765 | 765 | |
| 766 | − if (get_bits_left(gb) < 4 * (num_front + num_side + num_back + num_lfe + num_assoc_data + num_cc)) { | |
| 766 | + if (get_bits_left(gb) < 5 * (num_front + num_side + num_back + num_cc) + 4 *(num_lfe + num_assoc_data + num_cc)) { | |
| 767 | 767 | av_log(avctx, AV_LOG_ERROR, "decode_pce: " overread_err); |
| 768 | 768 | return -1; |
| 769 | 769 | } |