On Sun, 29 Jan 2012, Aneesh Dogra wrote:


Signed-off-by: Aneesh Dogra <[email protected]>
---
libavcodec/roqvideoenc.c |    9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index 2a62d55..73a0f27 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -74,6 +74,8 @@
/* The cast is useful when multiplying it by INT_MAX */
#define ROQ_LAMBDA_SCALE ((uint64_t) FF_LAMBDA_SCALE)

+#define SQUARE(x) x*x
+

This is wrong, should be something like #define SQUARE(x) ((x)*(x))

--
] ccr/TNSP^DKD^pWp  :: ccr tnsp org ::  http://ccr.tnsp.org/
] PGP key: 0466 95ED 96DF 3701 C71D D62D 10A6 28A6 1374 C112
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to