Browse Source

avcodec/ac3: add () to protect the macro arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
cb9d40451c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/ac3.h

+ 2
- 2
libavcodec/ac3.h View File

@@ -67,8 +67,8 @@
#define AC3_RENAME(x) x ## _fixed #define AC3_RENAME(x) x ## _fixed
#define AC3_NORM(norm) (1<<24)/(norm) #define AC3_NORM(norm) (1<<24)/(norm)
#define AC3_MUL(a,b) ((((int64_t) (a)) * (b))>>12) #define AC3_MUL(a,b) ((((int64_t) (a)) * (b))>>12)
#define AC3_RANGE(x) (x|((x&128)<<1))
#define AC3_HEAVY_RANGE(x) (x<<1)
#define AC3_RANGE(x) ((x)|(((x)&128)<<1))
#define AC3_HEAVY_RANGE(x) ((x)<<1)
#define AC3_DYNAMIC_RANGE(x) (x) #define AC3_DYNAMIC_RANGE(x) (x)
#define AC3_SPX_BLEND(x) (x) #define AC3_SPX_BLEND(x) (x)
#define AC3_DYNAMIC_RANGE1 0 #define AC3_DYNAMIC_RANGE1 0


Loading…
Cancel
Save