[FFmpeg-cvslog] avcodec/vp8: fix () in macros

Michael Niedermayer git at videolan.org
Wed Jun 18 03:21:33 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 18 02:55:49 2014 +0200| [c89be82c986f02c504a45d1dfcb4ea5be644fb8e] | committer: Michael Niedermayer

avcodec/vp8: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/vp8.c    |    2 +-
 libavcodec/vp8dsp.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 6547eb9..79c401d 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2755,7 +2755,7 @@ static av_cold int vp8_decode_init_thread_copy(AVCodecContext *avctx)
     return 0;
 }
 
-#define REBASE(pic) pic ? pic - &s_src->frames[0] + &s->frames[0] : NULL
+#define REBASE(pic) ((pic) ? (pic) - &s_src->frames[0] + &s->frames[0] : NULL)
 
 static int vp8_decode_update_thread_context(AVCodecContext *dst,
                                             const AVCodecContext *src)
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c
index f2a7f32..e1a91bb 100644
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@ -254,7 +254,7 @@ MK_IDCT_DC_ADD4_C(vp8)
     int av_unused q2 = p[ 2 * stride];                                        \
     int av_unused q3 = p[ 3 * stride];
 
-#define clip_int8(n) (cm[n + 0x80] - 0x80)
+#define clip_int8(n) (cm[(n) + 0x80] - 0x80)
 
 static av_always_inline void filter_common(uint8_t *p, ptrdiff_t stride,
                                            int is4tap, int is_vp7)



More information about the ffmpeg-cvslog mailing list