static void ape_unpack_mono(APEContext *ctx, int count)

{

    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        /* We are pure silence, so we're done. */

        av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n");

        return;

    }



    entropy_decode(ctx, count, 0);

    ape_apply_filters(ctx, ctx->decoded[0], NULL, count);



    /* Now apply the predictor decoding */

    predictor_decode_mono(ctx, count);



    /* Pseudo-stereo - just copy left channel to right channel */

    if (ctx->channels == 2) {

        memcpy(ctx->decoded[1], ctx->decoded[0], count * sizeof(*ctx->decoded[1]));

    }

}

static void ape_unpack_mono(APEContext *ctx, int count)

{

    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        

        av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n");

        return;

    }



    entropy_decode(ctx, count, 0);

    ape_apply_filters(ctx, ctx->decoded[0], NULL, count);



    

    predictor_decode_mono(ctx, count);



    

    if (ctx->channels == 2) {

        memcpy(ctx->decoded[1], ctx->decoded[0], count * sizeof(*ctx->decoded[1]));

    }

}

static void FUNC_0(APEContext *VAR_0, int VAR_1)

{

    if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence mono\n");

        return;

    }



    entropy_decode(VAR_0, VAR_1, 0);

    ape_apply_filters(VAR_0, VAR_0->decoded[0], NULL, VAR_1);



    

    predictor_decode_mono(VAR_0, VAR_1);



    

    if (VAR_0->channels == 2) {

        memcpy(VAR_0->decoded[1], VAR_0->decoded[0], VAR_1 * sizeof(*VAR_0->decoded[1]));

    }

}

static void FUNC_0(APEContext *VAR_0, int VAR_1)
{ if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence mono\n"); return; } entropy_decode(VAR_0, VAR_1, 0); ape_apply_filters(VAR_0, VAR_0->decoded[0], NULL, VAR_1); predictor_decode_mono(VAR_0, VAR_1); if (VAR_0->channels == 2) { memcpy(VAR_0->decoded[1], VAR_0->decoded[0], VAR_1 * sizeof(*VAR_0->decoded[1])); } }