[FFmpeg-cvslog] avcodec/golomb-test: fix () in EXTEND() macro
Michael Niedermayer
git at videolan.org
Mon Jun 23 17:55:59 CEST 2014
ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Sun May 25 03:27:56 2014 +0200| [60ed439334028e62ebded96c4f8721ce28e9db47] | committer: Michael Niedermayer
avcodec/golomb-test: fix () in EXTEND() macro
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 97e6b5ee3a16fee7d130f19f4dcee030f14d91cf)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60ed439334028e62ebded96c4f8721ce28e9db47
---
libavcodec/golomb-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/golomb-test.c b/libavcodec/golomb-test.c
index 8adcdf6..2dfe917 100644
--- a/libavcodec/golomb-test.c
+++ b/libavcodec/golomb-test.c
@@ -58,7 +58,7 @@ int main(void)
}
}
-#define EXTEND(i) (i << 3 | i & 7)
+#define EXTEND(i) ((i) << 3 | (i) & 7)
init_put_bits(&pb, temp, SIZE);
for (i = 0; i < COUNT; i++)
set_ue_golomb(&pb, EXTEND(i));
More information about the ffmpeg-cvslog
mailing list