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

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

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 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
OLDNEW
1 Index: patched-ffmpeg-mt/libavformat/mov.c 1 Only in unpatched_ffmpeg-mt: ffmpeg-mt
2 =================================================================== 2 diff -rpu unpatched_ffmpeg-mt/libavformat/mov.c ffmpeg-mt/libavformat/mov.c
3 --- patched-ffmpeg-mt/libavformat/mov.c (revision 39607) 3 --- unpatched_ffmpeg-mt/libavformat/mov.c» 2010-03-11 17:46:31 -0800
4 +++ patched-ffmpeg-mt/libavformat/mov.c (working copy) 4 +++ ffmpeg-mt/libavformat/mov.c»2010-03-11 19:08:40 -0800
5 @@ -269,6 +269,8 @@ 5 @@ -312,6 +312,8 @@ static int mov_read_dref(MOVContext *c,
6 MOVDref *dref = &sc->drefs[i]; 6 MOVDref *dref = &sc->drefs[i];
7 uint32_t size = get_be32(pb); 7 uint32_t size = get_be32(pb);
8 int64_t next = url_ftell(pb) + size - 4; 8 int64_t next = url_ftell(pb) + size - 4;
9 + if (size < 8) 9 + if (size < 8)
10 + return -1; 10 + return -1;
11 11
12 dref->type = get_le32(pb); 12 dref->type = get_le32(pb);
13 get_be32(pb); // version + flags 13 get_be32(pb); // version + flags
14 14 Only in ffmpeg-mt/libavformat: mov.c~
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698