[FFmpeg-cvslog] avcodec/hevcdsp: add missing () to CMP macro

James Almer git at videolan.org
Mon Feb 16 22:57:04 CET 2015


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Feb 16 18:53:38 2015 -0300| [6e3651983c7c7b18043c7aa7d3b782c5159c3b8a] | committer: James Almer

avcodec/hevcdsp: add missing () to CMP macro

Found-by: Clément Bœsch <u at pkh.me>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e3651983c7c7b18043c7aa7d3b782c5159c3b8a
---

 libavcodec/hevcdsp_template.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c
index aeb142c..cec28e4 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) {



More information about the ffmpeg-cvslog mailing list