[FFmpeg-cvslog] avcodec/rv34: Fix () in GET_PTS_DIFF() macro

Michael Niedermayer git at videolan.org
Sun May 25 21:50:34 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 25 21:42:19 2014 +0200| [9f50d3b944a9797186af2e309eeb3a97a1f009d8] | committer: Michael Niedermayer

avcodec/rv34: Fix () in GET_PTS_DIFF() macro

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

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

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

diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 4bae2c4..b275c55 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -509,7 +509,7 @@ static void rv34_pred_mv(RV34DecContext *r, int block_type, int subblock_no, int
     }
 }
 
-#define GET_PTS_DIFF(a, b) ((a - b + 8192) & 0x1FFF)
+#define GET_PTS_DIFF(a, b) (((a) - (b) + 8192) & 0x1FFF)
 
 /**
  * Calculate motion vector component that should be added for direct blocks.



More information about the ffmpeg-cvslog mailing list