diff options
author | Peter Ross <pross@xvid.org> | 2011-02-13 14:42:49 +1100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-13 16:49:39 -0500 |
commit | 1a973feb45826a1998b4286ecfe1fa7a602b8780 (patch) | |
tree | 633cbbc0014d45d348b7200361fff7350637f5bc /libavformat/wtv.c | |
parent | 5cbd3b5d915a76888b83af5c1fd3df31bd20a5be (diff) | |
download | ffmpeg-1a973feb45826a1998b4286ecfe1fa7a602b8780.tar.gz |
wtv: ignore empty data_guid chunks
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 7a8e8f54dc..b74a36cc80 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -892,7 +892,7 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p } } else if (!ff_guidcmp(g, data_guid)) { int stream_index = ff_find_stream_index(s, sid); - if (mode == SEEK_TO_DATA && stream_index >= 0) { + if (mode == SEEK_TO_DATA && stream_index >= 0 && len > 32) { WtvStream *wst = s->streams[stream_index]->priv_data; wst->seen_data = 1; if (len_ptr) { |