Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1013)

Unified Diff: third_party/ffmpeg/patches/to_upstream/48_aac_infinite_loop.patch

Issue 335018: ffmpeg patch to patch 42 to avoid infinite loop (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/ffmpeg/patched-ffmpeg-mt/libavcodec/aac.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/ffmpeg/patched-ffmpeg-mt/libavcodec/aac.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698