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

Unified Diff: source/patched-ffmpeg/libavformat/mov.c

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/to_upstream/54_mov_stss.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg/libavformat/mov.c
===================================================================
--- source/patched-ffmpeg/libavformat/mov.c (revision 120156)
+++ source/patched-ffmpeg/libavformat/mov.c (working copy)
@@ -1558,7 +1558,7 @@
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/to_upstream/54_mov_stss.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698