[FFmpeg-cvslog] avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorter

Michael Niedermayer git at videolan.org
Tue Apr 1 20:19:56 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr  1 16:31:10 2014 +0200| [91b105ce5bfba374297a0f03e5b89ff850730c55] | committer: Michael Niedermayer

avcodec/ac3dec: avoid #if, use if() instead, its cleaner and shorter

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Nedeljko Babic <nbabic at mips.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91b105ce5bfba374297a0f03e5b89ff850730c55
---

 libavcodec/ac3dec.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index f011a3b..e75be7e 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,



More information about the ffmpeg-cvslog mailing list