diff options
author | James Almer <jamrial@gmail.com> | 2015-02-16 18:53:38 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-02-16 18:56:16 -0300 |
commit | 6e3651983c7c7b18043c7aa7d3b782c5159c3b8a (patch) | |
tree | 4390c859e79bf45444ad3a1c86b50ca6d0fbdf18 /libavcodec | |
parent | 89cb4995fa0cc9375d9bb246512a82037ffeedc1 (diff) | |
download | ffmpeg-6e3651983c7c7b18043c7aa7d3b782c5159c3b8a.tar.gz |
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')
-rw-r--r-- | libavcodec/hevcdsp_template.c | 2 |
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) { |