[FFmpeg-devel] [PATCH 4/5] avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorter
Michael Niedermayer
michaelni at gmx.at
Sat Dec 28 02:29:50 CET 2013
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/ac3dec.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 14a0161..5f85817 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -835,9 +835,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,
--
1.7.9.5
More information about the ffmpeg-devel
mailing list