[FFmpeg-cvslog] oggdec: Support byte based seeking
Michael Niedermayer
git at videolan.org
Thu Apr 4 04:11:58 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 4 04:03:07 2013 +0200| [e278500181b825bf6ccbe6e6aba1e993aa820dd2] | committer: Michael Niedermayer
oggdec: Support byte based seeking
Fixed Ticket2317
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e278500181b825bf6ccbe6e6aba1e993aa820dd2
---
libavformat/oggdec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index fdb5e96..fd954b8 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 {
More information about the ffmpeg-cvslog
mailing list