Commit dfc2a398 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmalosslessdec: Add () to protect the arguments of WMASIGN()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 092ee6cd
...@@ -176,7 +176,7 @@ typedef struct WmallDecodeCtx { ...@@ -176,7 +176,7 @@ typedef struct WmallDecodeCtx {
} WmallDecodeCtx; } WmallDecodeCtx;
/** Get sign of integer (1 for positive, -1 for negative and 0 for zero) */ /** 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) static av_cold int decode_init(AVCodecContext *avctx)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment