diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index fdb5e96f00..fd954b805b 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -735,6 +735,11 @@ static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt) int pstart, psize; int64_t fpos, pts, dts; + if (s->io_repositioned) { + ogg_reset(s); + s->io_repositioned = 0; + } + //Get an ogg packet retry: do {