[FFmpeg-devel] [PATCH 7/8] avcodec/faanidct: replace #define by typedef

Ganesh Ajjanagadde gajjanagadde at gmail.com
Thu Nov 19 14:14:14 CET 2015


See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c
for rationale.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavcodec/faanidct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/faanidct.c b/libavcodec/faanidct.c
index ca82f77..bbaaa3f 100644
--- a/libavcodec/faanidct.c
+++ b/libavcodec/faanidct.c
@@ -22,7 +22,7 @@
 #include "libavutil/common.h"
 
 /* To allow switching to double. */
-#define FLOAT float
+typedef float FLOAT;
 
 #define B0 1.0000000000000000000000
 #define B1 1.3870398453221474618216 // cos(pi*1/16)sqrt(2)
-- 
2.6.2



More information about the ffmpeg-devel mailing list