Commit 866009ea authored by Peter Ross's avatar Peter Ross

wtv: only process timestamp_guid chunks for streams that we know about

Originally committed as revision 26277 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a5a36a79
......@@ -456,6 +456,8 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
consumed += 15;
}
} else if (!ff_guidcmp(g, timestamp_guid)) {
int stream_index = ff_find_stream_index(s, sid);
if (stream_index >= 0) {
url_fskip(pb, 8);
wtv->pts = get_le64(pb);
consumed += 16;
......@@ -466,6 +468,7 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
url_fskip(pb, WTV_PAD8(len) - consumed);
return 0;
}
}
} else if (!ff_guidcmp(g, data_guid)) {
int stream_index = ff_find_stream_index(s, sid);
if (mode == SEEK_TO_DATA && stream_index >= 0) {
......
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