avcodec/dct32_template: use M_SQRT1_2 instead of actual literal
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 11 Nov 2015 03:26:25 +0000 (22:26 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sun, 22 Nov 2015 21:16:16 +0000 (16:16 -0500)
Fixed point value remains unchanged.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/dct32_template.c

index fb53d53ab1b0e05b834f06dfa099bbbf20e369a8..c70396e5f54afddb6b7baff0525fb01cdc5d6724 100644 (file)
@@ -73,7 +73,7 @@
 #define COS3_0 FIXHR(0.54119610014619698439/2)
 #define COS3_1 FIXHR(1.30656296487637652785/4)
 
-#define COS4_0 FIXHR(0.70710678118654752439/2)
+#define COS4_0 FIXHR(M_SQRT1_2/2)
 
 /* butterfly operator */
 #define BF(a, b, c, s)\