[vlc-devel] [PATCH] ogg: fix invalid PCR value on 32-bit systems
Rafaël Carré
rafael.carre at gmail.com
Wed Nov 27 10:17:59 CET 2013
Probably VLC_TS_0 definition should be changed instead to avoid this problem
Tristan Matthews <le.businessman at gmail.com> a écrit :
>Fixes beginning of playback of Opus files, where the first few seconds
>were
>being dropped on 32-bit systems. Refs #9828.
>---
> modules/demux/ogg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
>index a901c69..38be23f 100644
>--- a/modules/demux/ogg.c
>+++ b/modules/demux/ogg.c
>@@ -273,7 +273,7 @@ static int Demux( demux_t * p_demux )
> Oggseek_ProbeEnd( p_demux );
>
> msg_Dbg( p_demux, "beginning of a group of logical streams" );
>- es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 );
>+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, (int64_t)
>VLC_TS_0 );
> }
>
> /*
>@@ -353,7 +353,7 @@ static int Demux( demux_t * p_demux )
> p_stream->i_pcr = VLC_TS_0;
> p_stream->i_interpolated_pcr = VLC_TS_0;
> p_stream->i_previous_granulepos = -1;
>- es_out_Control( p_demux->out, ES_OUT_SET_PCR,
>VLC_TS_0);
>+ es_out_Control( p_demux->out, ES_OUT_SET_PCR,
>(int64_t) VLC_TS_0 );
> }
>
> /* Does fail if serialno differs */
>--
>1.8.1.2
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131127/9677314b/attachment.html>
More information about the vlc-devel
mailing list