avformat/oggdec: ogg_read_seek: reset ogg after seeking
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 29 Jul 2015 21:17:15 +0000 (23:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 29 Jul 2015 21:22:12 +0000 (23:22 +0200)
Fixes Ticket4743

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggdec.c

index 6edef13..ae56915 100644 (file)
@@ -907,6 +907,7 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index,
         os->keyframe_seek = 1;
 
     ret = ff_seek_frame_binary(s, stream_index, timestamp, flags);
+    ogg_reset(s);
     os  = ogg->streams + stream_index;
     if (ret < 0)
         os->keyframe_seek = 0;