[vlc-commits] demux:ts: convert a hardcoded value with VLC_TICK_FROM_MS()

Steve Lhomme git at videolan.org
Thu Sep 20 16:15:57 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 13:04:30 2018 +0200| [306780e555d9beda34db19d70ef6be30ccd87f95] | committer: Steve Lhomme

demux:ts: convert a hardcoded value with VLC_TICK_FROM_MS()

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

 modules/demux/mpeg/ts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 128c815269..4fe4978d4b 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1349,7 +1349,7 @@ static block_t * ConvertPESBlock( demux_t *p_demux, ts_es_t *p_es,
              * In this case use the last PCR + 40ms */
             stime_t i_pcr = p_es->p_program->pcr.i_current;
             if( SETANDVALID(i_pcr) )
-                p_block->i_pts = FROM_SCALE(i_pcr) + 40000;
+                p_block->i_pts = FROM_SCALE(i_pcr) + VLC_TICK_FROM_MS(40);
         }
     }
     else if( p_es->fmt.i_codec == VLC_CODEC_ARIB_A ||



More information about the vlc-commits mailing list