git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092ee6c
)
avcodec/wmalosslessdec: Add () to protect the arguments of WMASIGN()
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Feb 2015 00:34:50 +0000
(
01:34
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Feb 2015 00:49:28 +0000
(
01:49
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmalosslessdec.c
b/libavcodec/wmalosslessdec.c
index
9612128
..
c9bcc26
100644
(file)
--- 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)
{