diff options
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 53650b57ef..d17682ce8d 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -458,16 +458,16 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p } 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; - if (wtv->pts == -1) - wtv->pts = AV_NOPTS_VALUE; - if (mode == SEEK_TO_PTS && wtv->pts >= seekts) { + url_fskip(pb, 8); + wtv->pts = get_le64(pb); + consumed += 16; + if (wtv->pts == -1) + wtv->pts = AV_NOPTS_VALUE; + if (mode == SEEK_TO_PTS && wtv->pts >= seekts) { #define WTV_PAD8(x) (((x) + 7) & ~7) - url_fskip(pb, WTV_PAD8(len) - consumed); - return 0; - } + 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); |