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

Francois Cartegnie git at videolan.org
Sun Sep 15 19:25:00 CEST 2019


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 16 19:31:46 2019 +0200| [342fa95336da846c59d652e35edab079f81a7b35] | committer: Francois Cartegnie

access: dvdread: fix invalid PCR on title start

(cherry picked from commit 586449aaf4362eb58ed43f5f8772cf285bdee39d)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=342fa95336da846c59d652e35edab079f81a7b35
---

 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 29b2e8b93f..f9271dc6f8 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -610,7 +610,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_TS_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