ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Tue Nov 18 03:42:40 2014 +0100| [9bb6e1175f6e396c9314449d62ee67b74081104e] | committer: Michael Niedermayer
avcodec/internal: Add () to argument of FF_SIGNBIT() to ensure correct order or operations Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9bb6e1175f6e396c9314449d62ee67b74081104e --- libavcodec/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/internal.h b/libavcodec/internal.h index b8ceb2e..f4e12e8 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 _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
