OLD | NEW |
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~ |
OLD | NEW |