[vlc-commits] mux:ogg: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Thu Jul 5 16:57:39 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 10:15:54 2018 +0200| [b429794d1d4e8c601337a1b1dacf8e604e5f996c] | committer: Steve Lhomme

mux:ogg: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

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

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

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index a1b268eeb6..1255dd496d 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -1729,7 +1729,7 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
     else if( p_stream->fmt.i_cat == SPU_ES )
     {
         /* granulepos is in millisec */
-        op.granulepos = ( p_data->i_dts - p_sys->i_start_dts ) / 1000;
+        op.granulepos = MS_FROM_VLC_TICK( p_data->i_dts - p_sys->i_start_dts );
     }
     else
         return VLC_EGENERIC;



More information about the vlc-commits mailing list