[vlc-devel] [PATCH 3/4] demux: ogg: seek to the position returned by OggBisectSearchByTime()
Michael Tänzer
neo at nhng.de
Sun Jan 31 00:29:24 CET 2016
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.
---
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 */
--
2.5.0
More information about the vlc-devel
mailing list