From 47eeb001e63b2e2780d70877ecd6aafc720f7f0a Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Mon, 16 Nov 2015 16:54:48 -0500 Subject: [PATCH] avcodec/ac3: replace #define by typedef See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c for rationale. Reviewed-by: Michael Niedermayer Signed-off-by: Ganesh Ajjanagadde --- libavcodec/ac3.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h index 3f67e09aea..ff36249045 100644 --- a/libavcodec/ac3.h +++ b/libavcodec/ac3.h @@ -73,8 +73,8 @@ #define AC3_SPX_BLEND(x) (x) #define AC3_DYNAMIC_RANGE1 0 -#define INTFLOAT int -#define SHORTFLOAT int16_t +typedef int INTFLOAT; +typedef int16_t SHORTFLOAT; #else /* USE_FIXED */ @@ -92,8 +92,8 @@ #define AC3_SPX_BLEND(x) (x)* (1.0f/32) #define AC3_DYNAMIC_RANGE1 1.0f -#define INTFLOAT float -#define SHORTFLOAT float +typedef float INTFLOAT; +typedef float SHORTFLOAT; #endif /* USE_FIXED */