[vlc-commits] nsv: base the pcr delay on CLOCK_FREQ

Steve Lhomme git at videolan.org
Sat May 5 19:41:14 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 15:11:18 2018 +0200| [b4d0307f8dfa8ae1d37e1eb7ed2b455eee7e7b4a] | committer: Rémi Denis-Courmont

nsv: base the pcr delay on CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/modules/demux/nsv.c b/modules/demux/nsv.c
index 53e0bd5478..f07fb183db 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -258,7 +258,7 @@ static int Demux( demux_t *p_demux )
 
                     /* Skip the first part (it is the language name) */
                     p_frame->i_pts = VLC_TS_0 + p_sys->i_pcr;
-                    p_frame->i_dts = VLC_TS_0 + p_sys->i_pcr + 4000000;    /* 4s */
+                    p_frame->i_dts = VLC_TS_0 + p_sys->i_pcr + 4 * CLOCK_FREQ;
 
                     if( p_sys->p_sub )
                         es_out_Send( p_demux->out, p_sys->p_sub, p_frame );



More information about the vlc-commits mailing list