History

avcodec/aacdec: Fix PCE channel_layout verification

Nicolas Sugino committed 9 years ago

Commit df884e01 parent 448c88e1 file · +1 −1Browse files

Unified · Split

libavcodec/aacdec_template.c+1−1
@@ -763,7 +763,7 @@ static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, · 762 unmodified lines
763 if (get_bits1(gb))763 if (get_bits1(gb))
764 skip_bits(gb, 3); // mixdown_coeff_index and pseudo_surround764 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 av_log(avctx, AV_LOG_ERROR, "decode_pce: " overread_err);767 av_log(avctx, AV_LOG_ERROR, "decode_pce: " overread_err);
768 return -1;768 return -1;
769 }769 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t