1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avcodec/dss_sp: Protect DSS_SP_FORMULA() with a set of outside brackets

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2015-02-19 22:29:02 +01:00
parent be0cb7e053
commit 4f1c1b26f2

View File

@@ -33,7 +33,7 @@
#define DSS_SP_FRAME_SIZE 42 #define DSS_SP_FRAME_SIZE 42
#define DSS_SP_SAMPLE_COUNT (66 * SUBFRAMES) #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 { typedef struct DssSpSubframe {
int16_t gain; int16_t gain;