[vlc-commits] access: dvdread: fix invalid PCR on title start

Francois Cartegnie git at videolan.org
Fri Aug 16 20:38:18 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 16 19:31:46 2019 +0200| [586449aaf4362eb58ed43f5f8772cf285bdee39d] | committer: Francois Cartegnie

access: dvdread: fix invalid PCR on title start

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=586449aaf4362eb58ed43f5f8772cf285bdee39d
---

 modules/access/dvdread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index b119a8f615..93cf95611b 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -602,7 +602,7 @@ static int DemuxBlock( demux_t *p_demux, const uint8_t *p, int len )
             int i_mux_rate;
             if( !ps_pkt_parse_pack( p_pkt, &i_scr, &i_mux_rate ) )
             {
-                es_out_SetPCR( p_demux->out, i_scr );
+                es_out_SetPCR( p_demux->out, VLC_TICK_0 + i_scr );
                 if( i_mux_rate > 0 ) p_sys->i_mux_rate = i_mux_rate;
             }
             block_Release( p_pkt );



More information about the vlc-commits mailing list