static void read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)

{

    ALSSpecificConfig *sconf = &ctx->sconf;

    AVCodecContext *avctx    = ctx->avctx;

    GetBitContext *gb        = &ctx->gb;



    *bd->raw_samples = 0;

    *bd->const_block = get_bits1(gb);    // 1 = constant value, 0 = zero block (silence)

    bd->js_blocks    = get_bits1(gb);



    // skip 5 reserved bits

    skip_bits(gb, 5);



    if (*bd->const_block) {

        unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample;

        *bd->raw_samples = get_sbits_long(gb, const_val_bits);

    }



    // ensure constant block decoding by reusing this field

    *bd->const_block = 1;

}

static void read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)

{

    ALSSpecificConfig *sconf = &ctx->sconf;

    AVCodecContext *avctx    = ctx->avctx;

    GetBitContext *gb        = &ctx->gb;



    *bd->raw_samples = 0;

    *bd->const_block = get_bits1(gb);    

    bd->js_blocks    = get_bits1(gb);



    

    skip_bits(gb, 5);



    if (*bd->const_block) {

        unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample;

        *bd->raw_samples = get_sbits_long(gb, const_val_bits);

    }



    

    *bd->const_block = 1;

}

static void FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)

{

    ALSSpecificConfig *sconf = &VAR_0->sconf;

    AVCodecContext *avctx    = VAR_0->avctx;

    GetBitContext *gb        = &VAR_0->gb;



    *VAR_1->raw_samples = 0;

    *VAR_1->const_block = get_bits1(gb);    

    VAR_1->js_blocks    = get_bits1(gb);



    

    skip_bits(gb, 5);



    if (*VAR_1->const_block) {

        unsigned int VAR_2 = sconf->floating ? 24 : avctx->bits_per_raw_sample;

        *VAR_1->raw_samples = get_sbits_long(gb, VAR_2);

    }



    

    *VAR_1->const_block = 1;

}

static void FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)
{ ALSSpecificConfig *sconf = &VAR_0->sconf; AVCodecContext *avctx    = VAR_0->avctx; GetBitContext *gb        = &VAR_0->gb; *VAR_1->raw_samples = 0; *VAR_1->const_block = get_bits1(gb); VAR_1->js_blocks    = get_bits1(gb); skip_bits(gb, 5); if (*VAR_1->const_block) { unsigned int VAR_2 = sconf->floating ? 24 : avctx->bits_per_raw_sample; *VAR_1->raw_samples = get_sbits_long(gb, VAR_2); } *VAR_1->const_block = 1; }