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

Side by Side Diff: patches/to_upstream/02_mov_dref_looping.patch

Issue 3066011: ffmpeg configured with webm decode only to avoid postproc that pulls in unuse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 diff -rpu -N orig/libavformat/mov.c ffmpeg-mt/libavformat/mov.c 1 diff -rpu -N orig/libavformat/mov.c ffmpeg-mt/libavformat/mov.c
2 --- orig/libavformat/mov.c» 2010-07-19 13:36:04.486179500 -0700 2 --- orig/libavformat/mov.c» 2010-07-27 13:06:22.069982500 -0700
3 +++ ffmpeg-mt/libavformat/mov.c»2010-07-19 13:36:05.921379500 -0700 3 +++ ffmpeg-mt/libavformat/mov.c»2010-07-27 13:06:23.245100000 -0700
4 @@ -344,6 +344,8 @@ static int mov_read_dref(MOVContext *c, 4 @@ -344,6 +344,8 @@ static int mov_read_dref(MOVContext *c,
5 MOVDref *dref = &sc->drefs[i]; 5 MOVDref *dref = &sc->drefs[i];
6 uint32_t size = get_be32(pb); 6 uint32_t size = get_be32(pb);
7 int64_t next = url_ftell(pb) + size - 4; 7 int64_t next = url_ftell(pb) + size - 4;
8 + if (size < 8) 8 + if (size < 8)
9 + return -1; 9 + return -1;
10 10
11 dref->type = get_le32(pb); 11 dref->type = get_le32(pb);
12 get_be32(pb); // version + flags 12 get_be32(pb); // version + flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698