aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-01 16:31:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-01 19:58:47 +0200
commit91b105ce5bfba374297a0f03e5b89ff850730c55 (patch)
tree796d73351040ca9db05adedc2a1b4d33f0fc47e6
parentb219142921e9f59307ad9edd3ed445cf3c1a9b5c (diff)
downloadffmpeg-91b105ce5bfba374297a0f03e5b89ff850730c55.tar.gz
avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Nedeljko Babic <nbabic@mips.com>
-rw-r--r--libavcodec/ac3dec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index f011a3b6a6..e75be7ef15 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -873,9 +873,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
s->spx_dst_start_freq = dst_start_freq;
s->spx_src_start_freq = src_start_freq;
-#if !USE_FIXED
- s->spx_dst_end_freq = dst_end_freq;
-#endif
+ if (!USE_FIXED)
+ s->spx_dst_end_freq = dst_end_freq;
decode_band_structure(gbc, blk, s->eac3, 0,
start_subband, end_subband,