Browse Source

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

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

+ 1
- 1
libavcodec/wmalosslessdec.c View File

@@ -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)
{


Loading…
Cancel
Save