summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdsp_template.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-02-16 18:53:38 -0300
committerJames Almer <jamrial@gmail.com>2015-02-16 18:56:16 -0300
commit6e3651983c7c7b18043c7aa7d3b782c5159c3b8a (patch)
tree4390c859e79bf45444ad3a1c86b50ca6d0fbdf18 /libavcodec/hevcdsp_template.c
parent89cb4995fa0cc9375d9bb246512a82037ffeedc1 (diff)
avcodec/hevcdsp: add missing () to CMP macro
Found-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcdsp_template.c')
-rw-r--r--libavcodec/hevcdsp_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c
index aeb142ca29..cec28e4550 100644
--- a/libavcodec/hevcdsp_template.c
+++ b/libavcodec/hevcdsp_template.c
@@ -325,7 +325,7 @@ static void FUNC(sao_band_filter_0)(uint8_t *_dst, uint8_t *_src,
}
}
-#define CMP(a, b) ((a > b) - (a < b))
+#define CMP(a, b) (((a) > (b)) - ((a) < (b)))
static void FUNC(sao_edge_filter)(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,
int eo, int width, int height) {