[FFmpeg-cvslog] avformat/oggdec: ogg_read_seek: reset ogg after seeking

Michael Niedermayer git at videolan.org
Wed Jul 29 23:33:17 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Jul 29 23:17:15 2015 +0200| [f8b81a02c980609c450992a0c261330a1ae95d86] | committer: Michael Niedermayer

avformat/oggdec: ogg_read_seek: reset ogg after seeking

Fixes Ticket4743

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8b81a02c980609c450992a0c261330a1ae95d86
---

 libavformat/oggdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 6edef13..ae56915 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list