# HG changeset patch # User jbr # Date 1211738761 0 # Node ID 5554f5ab2c19e0a15bf926645244e53fa91c2433 # Parent a790b3ee61b9b2b0722f429be8a8be1553d9fa21 cosmetics: indent diff -r a790b3ee61b9 -r 5554f5ab2c19 ac3dec.c --- a/ac3dec.c Sun May 25 18:05:15 2008 +0000 +++ b/ac3dec.c Sun May 25 18:06:01 2008 +0000 @@ -1190,23 +1190,23 @@ /* if frame is ok, set audio parameters */ if (!err) { - avctx->sample_rate = s->sample_rate; - avctx->bit_rate = s->bit_rate; + avctx->sample_rate = s->sample_rate; + avctx->bit_rate = s->bit_rate; - /* channel config */ - s->out_channels = s->channels; - if (avctx->request_channels > 0 && avctx->request_channels <= 2 && - avctx->request_channels < s->channels) { - s->out_channels = avctx->request_channels; - s->output_mode = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO; - } - avctx->channels = s->out_channels; + /* channel config */ + s->out_channels = s->channels; + if (avctx->request_channels > 0 && avctx->request_channels <= 2 && + avctx->request_channels < s->channels) { + s->out_channels = avctx->request_channels; + s->output_mode = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO; + } + avctx->channels = s->out_channels; - /* set downmixing coefficients if needed */ - if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) && - s->fbw_channels == s->out_channels)) { - set_downmix_coeffs(s); - } + /* set downmixing coefficients if needed */ + if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) && + s->fbw_channels == s->out_channels)) { + set_downmix_coeffs(s); + } } /* parse the audio blocks */