[vlc-commits] synchro: make constants compile-time constant

Rémi Denis-Courmont git at videolan.org
Fri May 4 10:37:56 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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



More information about the vlc-commits mailing list