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

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

Issue 2850032: ffmpeg update to june 23 version which fixes mp4 crash on still frames with 3... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 5 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 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-06-17 09:42:17.532286300 -0700 2 --- orig/libavformat/mov.c» 2010-06-24 19:19:08.059822000 -0700
3 +++ ffmpeg-mt/libavformat/mov.c»2010-06-17 09:42:18.696402700 -0700 3 +++ ffmpeg-mt/libavformat/mov.c»2010-06-24 19:19:09.853845000 -0700
4 @@ -342,6 +342,8 @@ static int mov_read_dref(MOVContext *c, 4 @@ -342,6 +342,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
« no previous file with comments | « patches/to_upstream/01_static_pthread_O2.patch ('k') | patches/to_upstream/03_mpeg4_video_to_elementary_stream.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698