[vlc-commits] mux:ts: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()
Steve Lhomme
git at videolan.org
Thu Jul 5 16:57:36 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 09:41:23 2018 +0200| [784a88a0d40438107d6e3473083b6407cf5d73d5] | committer: Steve Lhomme
mux:ts: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()
Easier to read and more explicit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=784a88a0d40438107d6e3473083b6407cf5d73d5
---
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 3bb6bba583..836fca3b80 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -1403,7 +1403,7 @@ static bool MuxStreams(sout_mux_t *p_mux )
return false;
}
}
- else if( p_data->i_length < 0 || p_data->i_length > 2000000 )
+ else if( p_data->i_length < 0 || p_data->i_length > VLC_TICK_FROM_SEC(2) )
{
/* FIXME choose a better value, but anyway we
* should never have to do that */
More information about the vlc-commits
mailing list