[FFmpeg-cvslog] avcodec/dss_sp: Protect DSS_SP_FORMULA() with a set of outside brackets
Michael Niedermayer
git at videolan.org
Thu Feb 19 23:02:18 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Feb 19 22:29:02 2015 +0100| [4f1c1b26f23441f99690e01acea81d26c3d02590] | committer: Michael Niedermayer
avcodec/dss_sp: Protect DSS_SP_FORMULA() with a set of outside brackets
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f1c1b26f23441f99690e01acea81d26c3d02590
---
libavcodec/dss_sp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c
index 2e8cc95..6f24b44 100644
--- a/libavcodec/dss_sp.c
+++ b/libavcodec/dss_sp.c
@@ -33,7 +33,7 @@
#define DSS_SP_FRAME_SIZE 42
#define DSS_SP_SAMPLE_COUNT (66 * SUBFRAMES)
-#define DSS_SP_FORMULA(a, b, c) ((((a) << 15) + (b) * (c)) + 0x4000) >> 15
+#define DSS_SP_FORMULA(a, b, c) (((((a) << 15) + (b) * (c)) + 0x4000) >> 15)
typedef struct DssSpSubframe {
int16_t gain;
More information about the ffmpeg-cvslog
mailing list