static int fic_decode_block(FICContext *ctx, GetBitContext *gb,

                            uint8_t *dst, int stride, int16_t *block)

{

    int i, num_coeff;



    /* Is it a skip block? */

    if (get_bits1(gb)) {

        /* This is a P-frame. */

        ctx->frame->key_frame = 0;

        ctx->frame->pict_type = AV_PICTURE_TYPE_P;



        return 0;

    }



    memset(block, 0, sizeof(*block) * 64);



    num_coeff = get_bits(gb, 7);

    if (num_coeff > 64)

        return AVERROR_INVALIDDATA;



    for (i = 0; i < num_coeff; i++)

        block[ff_zigzag_direct[i]] = get_se_golomb(gb) *

                                     ctx->qmat[ff_zigzag_direct[i]];



    fic_idct_put(dst, stride, block);



    return 0;

}

static int fic_decode_block(FICContext *ctx, GetBitContext *gb,

                            uint8_t *dst, int stride, int16_t *block)

{

    int i, num_coeff;



    

    if (get_bits1(gb)) {

        

        ctx->frame->key_frame = 0;

        ctx->frame->pict_type = AV_PICTURE_TYPE_P;



        return 0;

    }



    memset(block, 0, sizeof(*block) * 64);



    num_coeff = get_bits(gb, 7);

    if (num_coeff > 64)

        return AVERROR_INVALIDDATA;



    for (i = 0; i < num_coeff; i++)

        block[ff_zigzag_direct[i]] = get_se_golomb(gb) *

                                     ctx->qmat[ff_zigzag_direct[i]];



    fic_idct_put(dst, stride, block);



    return 0;

}

                            uint8_t *dst, int stride, int16_t *block)         ctx->frame->key_frame = 0;         ctx->frame->pict_type = AV_PICTURE_TYPE_P;
static int FUNC_0(FICContext *VAR_0, GetBitContext *VAR_1,

                            uint8_t *VAR_2, int VAR_3, int16_t *VAR_4)

{

    int VAR_5, VAR_6;



    

    if (get_bits1(VAR_1)) {

        

        VAR_0->frame->key_frame = 0;

        VAR_0->frame->pict_type = AV_PICTURE_TYPE_P;



        return 0;

    }



    memset(VAR_4, 0, sizeof(*VAR_4) * 64);



    VAR_6 = get_bits(VAR_1, 7);

    if (VAR_6 > 64)

        return AVERROR_INVALIDDATA;



    for (VAR_5 = 0; VAR_5 < VAR_6; VAR_5++)

        VAR_4[ff_zigzag_direct[VAR_5]] = get_se_golomb(VAR_1) *

                                     VAR_0->qmat[ff_zigzag_direct[VAR_5]];



    fic_idct_put(VAR_2, VAR_3, VAR_4);



    return 0;

}

static int FUNC_0(FICContext *VAR_0, GetBitContext *VAR_1,
uint8_t *VAR_2, int VAR_3, int16_t *VAR_4)
{ int VAR_5, VAR_6; if (get_bits1(VAR_1)) { VAR_0->frame->key_frame = 0; VAR_0->frame->pict_type = AV_PICTURE_TYPE_P; return 0; } memset(VAR_4, 0, sizeof(*VAR_4) * 64); VAR_6 = get_bits(VAR_1, 7); if (VAR_6 > 64)
return AVERROR_INVALIDDATA; for (VAR_5 = 0; VAR_5 < VAR_6; VAR_5++) VAR_4[ff_zigzag_direct[VAR_5]] = get_se_golomb(VAR_1) *
VAR_0->qmat[ff_zigzag_direct[VAR_5]]; fic_idct_put(VAR_2, VAR_3, VAR_4); return 0; }