From 784a88a0d40438107d6e3473083b6407cf5d73d5 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 13 Jun 2018 09:41:23 +0200 Subject: [PATCH] mux:ts: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC() Easier to read and more explicit. --- 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 */ -- 2.11.4.GIT