X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwv.c;h=d057262029e55d5ca70e9c6825f5566cbe599781;hb=ad6c7c1b525c7ae365491b4fef7869d31ee88329;hp=5c9c31c72a880780a12c32fbd8e05b1ff847327f;hpb=5561fe487f0a2d522fd5655c129acf99b0d59490;p=ffmpeg diff --git a/libavformat/wv.c b/libavformat/wv.c index 5c9c31c72a8..d057262029e 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -330,7 +330,8 @@ static int wv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int64_t pos, pts; /* if found, seek there */ - if (index >= 0){ + if (index >= 0 && + timestamp <= st->index_entries[st->nb_index_entries - 1].timestamp) { wc->block_parsed = 1; avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET); return 0;