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 <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
Ganesh Ajjanagadde 2015-11-16 16:54:48 -05:00
parent 9747219958
commit 47eeb001e6
1 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@
#define AC3_SPX_BLEND(x) (x) #define AC3_SPX_BLEND(x) (x)
#define AC3_DYNAMIC_RANGE1 0 #define AC3_DYNAMIC_RANGE1 0
#define INTFLOAT int typedef int INTFLOAT;
#define SHORTFLOAT int16_t typedef int16_t SHORTFLOAT;
#else /* USE_FIXED */ #else /* USE_FIXED */
@ -92,8 +92,8 @@
#define AC3_SPX_BLEND(x) (x)* (1.0f/32) #define AC3_SPX_BLEND(x) (x)* (1.0f/32)
#define AC3_DYNAMIC_RANGE1 1.0f #define AC3_DYNAMIC_RANGE1 1.0f
#define INTFLOAT float typedef float INTFLOAT;
#define SHORTFLOAT float typedef float SHORTFLOAT;
#endif /* USE_FIXED */ #endif /* USE_FIXED */