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

Unified Diff: third_party/ffmpeg/patched-ffmpeg-mt/libavcodec/aac.c

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
Index: third_party/ffmpeg/patched-ffmpeg-mt/libavcodec/aac.c
===================================================================
--- third_party/ffmpeg/patched-ffmpeg-mt/libavcodec/aac.c (revision 29964)
+++ third_party/ffmpeg/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/README.chromium ('k') | third_party/ffmpeg/patches/to_upstream/48_aac_infinite_loop.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698