[FFmpeg-cvslog] indeo3: add parens around some macro arguments

Mans Rullgard git at videolan.org
Tue Apr 17 12:27:18 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Mon Apr 16 15:48:05 2012 +0100| [8b84e082ed27fb635fca524fbd14b1db094ee8b0] | committer: Mans Rullgard

indeo3: add parens around some macro arguments

Without these, the expansion contains things like --1 with
some compilers resulting in build errors.

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

 libavcodec/indeo3data.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/indeo3data.h b/libavcodec/indeo3data.h
index 6bb55ce..55164c2 100644
--- a/libavcodec/indeo3data.h
+++ b/libavcodec/indeo3data.h
@@ -247,8 +247,8 @@
  * Expand a pair of delta values (a,b)
  * into two/four delta entries.
  */
-#define E2(a, b) PD(a, b), PD(-a, -b)
-#define E4(a, b) PD(a, b), PD(-a, -b), PD(b, a), PD(-b, -a)
+#define E2(a, b) PD(a, b), PD(-(a), -(b))
+#define E4(a, b) PD(a, b), PD(-(a), -(b)), PD(b, a), PD(-(b), -(a))
 
 /*
  * VQ tables for 4x4 block modes.



More information about the ffmpeg-cvslog mailing list