comparison ac3dec.c @ 6885:5554f5ab2c19 libavcodec

cosmetics: indent
author jbr
date Sun, 25 May 2008 18:06:01 +0000
parents a790b3ee61b9
children 6b4bd5d667cd
comparison
equal deleted inserted replaced
6884:a790b3ee61b9 6885:5554f5ab2c19
1188 } 1188 }
1189 } 1189 }
1190 1190
1191 /* if frame is ok, set audio parameters */ 1191 /* if frame is ok, set audio parameters */
1192 if (!err) { 1192 if (!err) {
1193 avctx->sample_rate = s->sample_rate; 1193 avctx->sample_rate = s->sample_rate;
1194 avctx->bit_rate = s->bit_rate; 1194 avctx->bit_rate = s->bit_rate;
1195 1195
1196 /* channel config */ 1196 /* channel config */
1197 s->out_channels = s->channels; 1197 s->out_channels = s->channels;
1198 if (avctx->request_channels > 0 && avctx->request_channels <= 2 && 1198 if (avctx->request_channels > 0 && avctx->request_channels <= 2 &&
1199 avctx->request_channels < s->channels) { 1199 avctx->request_channels < s->channels) {
1200 s->out_channels = avctx->request_channels; 1200 s->out_channels = avctx->request_channels;
1201 s->output_mode = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO; 1201 s->output_mode = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO;
1202 } 1202 }
1203 avctx->channels = s->out_channels; 1203 avctx->channels = s->out_channels;
1204 1204
1205 /* set downmixing coefficients if needed */ 1205 /* set downmixing coefficients if needed */
1206 if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) && 1206 if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
1207 s->fbw_channels == s->out_channels)) { 1207 s->fbw_channels == s->out_channels)) {
1208 set_downmix_coeffs(s); 1208 set_downmix_coeffs(s);
1209 } 1209 }
1210 } 1210 }
1211 1211
1212 /* parse the audio blocks */ 1212 /* parse the audio blocks */
1213 for (blk = 0; blk < NB_BLOCKS; blk++) { 1213 for (blk = 0; blk < NB_BLOCKS; blk++) {
1214 if (!err && ac3_parse_audio_block(s, blk)) { 1214 if (!err && ac3_parse_audio_block(s, blk)) {