ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Feb 16 23:59:39 2015 +0100| [cb9d40451cb2f9d863355f76aa62ef8e5fcf4960] | committer: Michael Niedermayer
avcodec/ac3: add () to protect the macro arguments Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb9d40451cb2f9d863355f76aa62ef8e5fcf4960 --- libavcodec/ac3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h index 871640b..1fe30b9 100644 --- a/libavcodec/ac3.h +++ b/libavcodec/ac3.h @@ -67,8 +67,8 @@ #define AC3_RENAME(x) x ## _fixed #define AC3_NORM(norm) (1<<24)/(norm) #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_SPX_BLEND(x) (x) #define AC3_DYNAMIC_RANGE1 0 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog