You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/wavpack: fix () in macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -83,7 +83,7 @@ typedef struct WavpackContext {
|
|||||||
int ch_offset;
|
int ch_offset;
|
||||||
} WavpackContext;
|
} WavpackContext;
|
||||||
|
|
||||||
#define LEVEL_DECAY(a) ((a + 0x80) >> 8)
|
#define LEVEL_DECAY(a) (((a) + 0x80) >> 8)
|
||||||
|
|
||||||
static av_always_inline int get_tail(GetBitContext *gb, int k)
|
static av_always_inline int get_tail(GetBitContext *gb, int k)
|
||||||
{
|
{
|
||||||
|
@@ -99,8 +99,8 @@ typedef struct WvChannel {
|
|||||||
|
|
||||||
// macros for manipulating median values
|
// macros for manipulating median values
|
||||||
#define GET_MED(n) ((c->median[n] >> 4) + 1)
|
#define GET_MED(n) ((c->median[n] >> 4) + 1)
|
||||||
#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >> n) - 2) / (128 >> n)) * 2
|
#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >> (n)) - 2) / (128 >> (n))) * 2
|
||||||
#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >> n) ) / (128 >> n)) * 5
|
#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >> (n)) ) / (128 >> (n))) * 5
|
||||||
|
|
||||||
// macros for applying weight
|
// macros for applying weight
|
||||||
#define UPDATE_WEIGHT_CLIP(weight, delta, samples, in) \
|
#define UPDATE_WEIGHT_CLIP(weight, delta, samples, in) \
|
||||||
|
Reference in New Issue
Block a user