diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 01:34:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 01:49:28 +0100 |
commit | dfc2a3982fa8de0fdd98d347beef661fe0ab136d (patch) | |
tree | 932b173fc5e004036fb3ce769bcc32c117ac9032 /libavcodec/wmalosslessdec.c | |
parent | 092ee6cd32e45d7069555c6e5cc0f043328826c2 (diff) | |
download | ffmpeg-dfc2a3982fa8de0fdd98d347beef661fe0ab136d.tar.gz |
avcodec/wmalosslessdec: Add () to protect the arguments of WMASIGN()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r-- | libavcodec/wmalosslessdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 9612128a24..c9bcc2683a 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -176,7 +176,7 @@ typedef struct WmallDecodeCtx { } WmallDecodeCtx; /** Get sign of integer (1 for positive, -1 for negative and 0 for zero) */ -#define WMASIGN(x) ((x > 0) - (x < 0)) +#define WMASIGN(x) (((x) > 0) - ((x) < 0)) static av_cold int decode_init(AVCodecContext *avctx) { |