aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-18 03:42:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-18 03:42:40 +0100
commit9bb6e1175f6e396c9314449d62ee67b74081104e (patch)
tree01e0e89d275c0ff0c40dd75efb3ab8387e049c8f /libavcodec/internal.h
parent4cd4a6de4f976a5bf79b564daa23c97cce545caf (diff)
downloadffmpeg-9bb6e1175f6e396c9314449d62ee67b74081104e.tar.gz
avcodec/internal: Add () to argument of FF_SIGNBIT() to ensure correct order or operations
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index b8ceb2e9f1..f4e12e8084 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -35,7 +35,7 @@
#define FF_SANE_NB_CHANNELS 63U
-#define FF_SIGNBIT(x) (x >> CHAR_BIT * sizeof(x) - 1)
+#define FF_SIGNBIT(x) ((x) >> CHAR_BIT * sizeof(x) - 1)
#if HAVE_AVX
# define STRIDE_ALIGN 32