aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-04 04:03:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-04 04:04:24 +0200
commite278500181b825bf6ccbe6e6aba1e993aa820dd2 (patch)
treecf60e83bb73897188e68bfea866e1a4d0e9bd85f /libavformat
parente10f5bd05cec8fe59bb43fd28c4c2a092ca5f440 (diff)
downloadffmpeg-e278500181b825bf6ccbe6e6aba1e993aa820dd2.tar.gz
oggdec: Support byte based seeking
Fixed Ticket2317 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index fdb5e96f00..fd954b805b 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -735,6 +735,11 @@ static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
int pstart, psize;
int64_t fpos, pts, dts;
+ if (s->io_repositioned) {
+ ogg_reset(s);
+ s->io_repositioned = 0;
+ }
+
//Get an ogg packet
retry:
do {