OLD | NEW |
| (Empty) |
1 Index: patched-ffmpeg-mt/libavcodec/aac.c | |
2 =================================================================== | |
3 --- patched-ffmpeg-mt/libavcodec/aac.c (revision 39691) | |
4 +++ patched-ffmpeg-mt/libavcodec/aac.c (working copy) | |
5 @@ -701,9 +701,9 @@ | |
6 while ((sect_len_incr = get_bits(gb, bits)) == (1 << bits) - 1) | |
7 sect_end += sect_len_incr; | |
8 sect_end += sect_len_incr; | |
9 - if (sect_end > ics->max_sfb) { | |
10 + if (sect_end > ics->max_sfb || sect_end == k) { | |
11 av_log(ac->avccontext, AV_LOG_ERROR, | |
12 - "Number of bands (%d) exceeds limit (%d).\n", | |
13 + "Number of bands (%d) is invalid, limit (%d).\n", | |
14 sect_end, ics->max_sfb); | |
15 return -1; | |
16 } | |
17 | |
OLD | NEW |