aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-29 23:17:15 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-29 23:22:12 +0200
commitf8b81a02c980609c450992a0c261330a1ae95d86 (patch)
treee7671400bde97296a86fbbd631f2f9b522fd0213 /libavformat/oggdec.c
parent6c87b866285fae0a45ab4d7162088428f60bd332 (diff)
downloadffmpeg-f8b81a02c980609c450992a0c261330a1ae95d86.tar.gz
avformat/oggdec: ogg_read_seek: reset ogg after seeking
Fixes Ticket4743 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 6edef13ff7..ae56915b58 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;