Commit f8b81a02 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/oggdec: ogg_read_seek: reset ogg after seeking

Fixes Ticket4743
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6c87b866
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment