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

Tristan Matthews le.businessman at gmail.com
Wed Nov 27 07:03:53 CET 2013


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




More information about the vlc-devel mailing list