---
libavformat/vqf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index 057a371..4c69a69 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -262,8 +262,10 @@ static int vqf_read_seek(AVFormatContext *s,
st->cur_dts = av_rescale(pos, st->time_base.den,
st->codec->bit_rate * (int64_t)st->time_base.num);
+ st->cur_dts = FFMAX(st->cur_dts, -2);
pos += 2 * c->frame_bit_len;
+ pos = FFMAX(pos, 0);
if ((ret = avio_seek(s->pb, ((pos-7) >> 3) + s->data_offset, SEEK_SET)) <
0)
return ret;
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel