[vlc-commits] demux: ogg: seek to the position returned by OggBisectSearchByTime()

Michael Tänzer git at videolan.org
Fri Feb 5 16:46:04 CET 2016


vlc | branch: master | Michael Tänzer <neo at nhng.de> | Sun Jan 31 00:29:24 2016 +0100| [415d10cd8b1fbde23cbb52b00b7e0f20f4a7a118] | committer: Jean-Baptiste Kempf

demux: ogg: seek to the position returned by OggBisectSearchByTime()

If the packet starting at i_pagepos is larger than a page, i_input_position
will point to the last of those pages and we need to seek to the first one.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=415d10cd8b1fbde23cbb52b00b7e0f20f4a7a118
---

 modules/demux/oggseek.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c
index 104954d..e7f3db1 100644
--- a/modules/demux/oggseek.c
+++ b/modules/demux/oggseek.c
@@ -1011,6 +1011,7 @@ int Oggseek_SeektoAbsolutetime( demux_t *p_demux, logical_stream_t *p_stream,
     {
         /* be sure to clear any state or read+pagein() will fail on same # */
         ogg_stream_reset( &p_stream->os );
+        p_sys->i_input_position = i_pagepos;
         seek_byte( p_demux, p_sys->i_input_position );
     }
     /* Insert keyframe position into index */



More information about the vlc-commits mailing list