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

Unified Diff: patches/to_upstream/43_mkv_seekahead_revalidate.patch

Issue 8366004: Fix a bug where a pointer was cached to an array that might later move due to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 9 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 | « patches/README ('k') | source/patched-ffmpeg/libavformat/matroskadec.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/to_upstream/43_mkv_seekahead_revalidate.patch
===================================================================
--- patches/to_upstream/43_mkv_seekahead_revalidate.patch (revision 0)
+++ patches/to_upstream/43_mkv_seekahead_revalidate.patch (revision 0)
@@ -0,0 +1,19 @@
+diff -wurp -N orig/libavformat/matroskadec.c patched-ffmpeg/libavformat/matroskadec.c
+--- orig/libavformat/matroskadec.c 2011-10-20 11:28:27.935337424 -0700
++++ patched-ffmpeg/libavformat/matroskadec.c 2011-10-20 11:32:03.845401593 -0700
+@@ -1241,7 +1241,6 @@ static int matroska_parse_seekhead_entry
+ static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
+ {
+ EbmlList *seekhead_list = &matroska->seekhead;
+- MatroskaSeekhead *seekhead = seekhead_list->elem;
+ int64_t before_pos = avio_tell(matroska->ctx->pb);
+ int i;
+
+@@ -1251,6 +1250,7 @@ static void matroska_execute_seekhead(Ma
+ return;
+
+ for (i = 0; i < seekhead_list->nb_elem; i++) {
++ MatroskaSeekhead *seekhead = seekhead_list->elem;
+ if (seekhead[i].pos <= before_pos)
+ continue;
+
« no previous file with comments | « patches/README ('k') | source/patched-ffmpeg/libavformat/matroskadec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698