static void pop_output_configuration(AACContext *ac) {

    if (ac->oc[1].status != OC_LOCKED) {

        if (ac->oc[0].status == OC_LOCKED) {

            ac->oc[1] = ac->oc[0];

            ac->avctx->channels = ac->oc[1].channels;

            ac->avctx->channel_layout = ac->oc[1].channel_layout;

        }else{

            ac->avctx->channels = 0;

            ac->avctx->channel_layout = 0;

        }

    }

}

static void pop_output_configuration(AACContext *ac) {

    if (ac->oc[1].status != OC_LOCKED) {

        if (ac->oc[0].status == OC_LOCKED) {

            ac->oc[1] = ac->oc[0];

            ac->avctx->channels = ac->oc[1].channels;

            ac->avctx->channel_layout = ac->oc[1].channel_layout;

        }else{

            ac->avctx->channels = 0;

            ac->avctx->channel_layout = 0;

        }

    }

}

        }else{             ac->avctx->channels = 0;             ac->avctx->channel_layout = 0;
static void FUNC_0(AACContext *VAR_0) {

    if (VAR_0->oc[1].status != OC_LOCKED) {

        if (VAR_0->oc[0].status == OC_LOCKED) {

            VAR_0->oc[1] = VAR_0->oc[0];

            VAR_0->avctx->channels = VAR_0->oc[1].channels;

            VAR_0->avctx->channel_layout = VAR_0->oc[1].channel_layout;

        }else{

            VAR_0->avctx->channels = 0;

            VAR_0->avctx->channel_layout = 0;

        }

    }

}

static void FUNC_0(AACContext *VAR_0) { if (VAR_0->oc[1].status != OC_LOCKED) { if (VAR_0->oc[0].status == OC_LOCKED) { VAR_0->oc[1] = VAR_0->oc[0]; VAR_0->avctx->channels = VAR_0->oc[1].channels; VAR_0->avctx->channel_layout = VAR_0->oc[1].channel_layout; }else{ VAR_0->avctx->channels = 0; VAR_0->avctx->channel_layout = 0; } } }