[vlc-commits] demux: ogg: save offset on serialno change
Francois Cartegnie
git at videolan.org
Thu Apr 24 21:01:57 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr 24 21:00:59 2014 +0200| [6f3abd5c9086326cfbf2ecb965d6c03775c2d941] | committer: Francois Cartegnie
demux: ogg: save offset on serialno change
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f3abd5c9086326cfbf2ecb965d6c03775c2d941
---
modules/demux/ogg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 1f8b081..b61366b 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -394,6 +394,8 @@ static int Demux( demux_t * p_demux )
{
msg_Err( p_demux, "Broken Ogg stream (serialno) mismatch" );
Ogg_ResetStream( p_stream );
+ p_sys->i_nzpcr_offset = (p_sys->i_pcr >= VLC_TS_INVALID) ?
+ p_sys->i_pcr - VLC_TS_0 : 0;
ogg_stream_reset_serialno( &p_stream->os, ogg_page_serialno( &p_sys->current_page ) );
}
More information about the vlc-commits
mailing list