Commit 1a973feb authored by Peter Ross's avatar Peter Ross Committed by Ronald S. Bultje
Browse files

wtv: ignore empty data_guid chunks


Signed-off-by: default avatarRonald S. Bultje <rsbultje@gmail.com>
parent 5cbd3b5d
...@@ -892,7 +892,7 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p ...@@ -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)) { } else if (!ff_guidcmp(g, data_guid)) {
int stream_index = ff_find_stream_index(s, sid); 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; WtvStream *wst = s->streams[stream_index]->priv_data;
wst->seen_data = 1; wst->seen_data = 1;
if (len_ptr) { if (len_ptr) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment