[vlc-commits] mux:ts: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()
Steve Lhomme
git at videolan.org
Thu Jul 5 16:57:38 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 10:05:15 2018 +0200| [049703cea09c35d7d04dd837cdc69aa2f4f8f9b7] | committer: Steve Lhomme
mux:ts: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=049703cea09c35d7d04dd837cdc69aa2f4f8f9b7
---
modules/mux/mpeg/ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 561b591195..25e27c3e2e 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -1771,7 +1771,7 @@ static void TSDate( sout_mux_t *p_mux, sout_buffer_chain_t *p_chain_ts,
if ( i_pcr_length / 1000 > 0 )
{
int i_bitrate = ((uint64_t)i_packet_count * 188 * 8000)
- / (uint64_t)(i_pcr_length / 1000);
+ / MS_FROM_VLC_TICK(i_pcr_length);
if ( p_sys->i_bitrate_max && p_sys->i_bitrate_max < i_bitrate )
{
msg_Warn( p_mux, "max bitrate exceeded at %"PRId64
More information about the vlc-commits
mailing list