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

Unified Diff: patches/to_upstream/54_mov_stss.patch

Issue 9309087: Fix fairly harmless OOB read from MAV_0001.3G2.asan.4f.188 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 8 years, 11 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/mov.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/to_upstream/54_mov_stss.patch
===================================================================
--- patches/to_upstream/54_mov_stss.patch (revision 0)
+++ patches/to_upstream/54_mov_stss.patch (revision 0)
@@ -0,0 +1,12 @@
+diff -wurp -N orig/libavformat/mov.c ffmpeg/libavformat/mov.c
+--- orig/libavformat/mov.c 2012-02-03 11:39:21.961119253 -0800
++++ ffmpeg/libavformat/mov.c 2012-02-03 11:39:56.500485313 -0800
+@@ -1558,7 +1558,7 @@ static void mov_build_index(MOVContext *
+ unsigned int stts_sample = 0;
+ unsigned int sample_size;
+ unsigned int distance = 0;
+- int key_off = sc->keyframes && sc->keyframes[0] == 1;
++ int key_off = sc->keyframe_count && sc->keyframes[0] == 1;
+
+ current_dts -= sc->dts_shift;
+
« no previous file with comments | « patches/README ('k') | source/patched-ffmpeg/libavformat/mov.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698