mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 08:15:06 +02:00
avformat/oggdec: ogg_read_seek: reset ogg after seeking
Fixes Ticket4743 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6c87b86628
commit
f8b81a02c9
@ -907,6 +907,7 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index,
|
|||||||
os->keyframe_seek = 1;
|
os->keyframe_seek = 1;
|
||||||
|
|
||||||
ret = ff_seek_frame_binary(s, stream_index, timestamp, flags);
|
ret = ff_seek_frame_binary(s, stream_index, timestamp, flags);
|
||||||
|
ogg_reset(s);
|
||||||
os = ogg->streams + stream_index;
|
os = ogg->streams + stream_index;
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
os->keyframe_seek = 0;
|
os->keyframe_seek = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user