[FFmpeg-soc] [soc]: r2068 - aac/aac.c
andoma
subversion at mplayerhq.hu
Thu Apr 3 08:34:14 CEST 2008
Author: andoma
Date: Thu Apr 3 08:34:14 2008
New Revision: 2068
Log:
Remove '!= 0' from if-statements
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Thu Apr 3 08:34:14 2008
@@ -574,7 +574,7 @@ static int output_configure(AACContext *
/* Check for matrix mixdown to mono or stereo */
- if(avctx->request_channels != 0 && avctx->request_channels <= 2 &&
+ if(avctx->request_channels && avctx->request_channels <= 2 &&
avctx->request_channels != channels) {
if((avctx->request_channels == 1 && pcs->mono_mixdown != -1) ||
@@ -1537,7 +1537,7 @@ static int coupling_channel_element(AACC
int cge = 1;
int gain = 0;
float gain_cache = 1.;
- if (c != 0) {
+ if (c) {
cge = coup->ind_sw ? 1 : get_bits1(gb);
gain = cge ? get_vlc2(gb, ac->mainvlc.table, 7, 3) - 60: 0;
gain_cache = pow(scale, (float)gain);
More information about the FFmpeg-soc
mailing list