From a45e6b7bc5ad3931ba880efd9b6b853240ab99bb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 25 May 2014 21:41:57 +0200 Subject: [PATCH] avcodec/psymodel: Fix () in AAC_CUTOFF() macro Signed-off-by: Michael Niedermayer --- libavcodec/psymodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/psymodel.h b/libavcodec/psymodel.h index d1a126a88f..75261ba4be 100644 --- a/libavcodec/psymodel.h +++ b/libavcodec/psymodel.h @@ -29,7 +29,7 @@ /** maximum number of channels */ #define PSY_MAX_CHANS 20 -#define AAC_CUTOFF(s) (s->bit_rate ? FFMIN3(4000 + s->bit_rate/8, 12000 + s->bit_rate/32, s->sample_rate / 2) : (s->sample_rate / 2)) +#define AAC_CUTOFF(s) ((s)->bit_rate ? FFMIN3(4000 + (s)->bit_rate/8, 12000 + (s)->bit_rate/32, (s)->sample_rate / 2) : ((s)->sample_rate / 2)) /** * single band psychoacoustic information