vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Fri May 4 10:45:16 2018 +0300| [1611074336ff0bf280cfbbd745538432ec27faab] | committer: Rémi Denis-Courmont
synchro: make constants compile-time constant > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1611074336ff0bf280cfbbd745538432ec27faab --- modules/codec/synchro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/synchro.c b/modules/codec/synchro.c index c7eb492e56..3fc5582186 100644 --- a/modules/codec/synchro.c +++ b/modules/codec/synchro.c @@ -150,8 +150,8 @@ struct decoder_synchro_t }; /* Error margins */ -#define DELTA (int)(0.075*CLOCK_FREQ) -#define MAX_VALID_TAU (int)(0.3*CLOCK_FREQ) +#define DELTA ((CLOCK_FREQ * 3) / 40) +#define MAX_VALID_TAU ((CLOCK_FREQ * 3) / 10) #define DEFAULT_NB_P 5 #define DEFAULT_NB_B 1 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
