| Index: third_party/ffmpeg/patches/to_upstream/48_aac_infinite_loop.patch
|
| ===================================================================
|
| --- third_party/ffmpeg/patches/to_upstream/48_aac_infinite_loop.patch (revision 0)
|
| +++ third_party/ffmpeg/patches/to_upstream/48_aac_infinite_loop.patch (revision 0)
|
| @@ -0,0 +1,13 @@
|
| +Index: patched-ffmpeg-mt/libavcodec/aac.c
|
| +===================================================================
|
| +--- patched-ffmpeg-mt/libavcodec/aac.c (revision 29964)
|
| ++++ patched-ffmpeg-mt/libavcodec/aac.c (working copy)
|
| +@@ -641,7 +641,7 @@
|
| + while ((sect_len_incr = get_bits(gb, bits)) == (1 << bits)-1)
|
| + sect_len += sect_len_incr;
|
| + sect_len += sect_len_incr;
|
| +- if (sect_len > ics->max_sfb || sect_len == 0) {
|
| ++ if (sect_len > ics->max_sfb || sect_len == k) {
|
| + av_log(ac->avccontext, AV_LOG_ERROR,
|
| + "Number of bands (%d) is invalid, limit (%d).\n",
|
| + sect_len, ics->max_sfb);
|
|
|