[vlc-devel] [PATCH] ogg: fix invalid PCR value on 32-bit systems

Rémi Denis-Courmont remi at remlab.net
Wed Nov 27 10:46:50 CET 2013


On Wed, 27 Nov 2013 01:03:53 -0500, Tristan Matthews
<le.businessman at gmail.com> wrote:
> 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
> );

It looks more like VLC_TS_0 lacks INT64_C().

>      }
>  
>      /*
> @@ -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 */

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list