static void mpeg_decode_extension(AVCodecContext *avctx, 

                                  UINT8 *buf, int buf_size)

{

    Mpeg1Context *s1 = avctx->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    int ext_type;



    init_get_bits(&s->gb, buf, buf_size);

    

    ext_type = get_bits(&s->gb, 4);

    switch(ext_type) {

    case 0x1:

        /* sequence ext */

        mpeg_decode_sequence_extension(s);

        break;

    case 0x3:

        /* quant matrix extension */

        mpeg_decode_quant_matrix_extension(s);

        break;

    case 0x8:

        /* picture extension */

        mpeg_decode_picture_coding_extension(s);

        break;

    }

}

static void mpeg_decode_extension(AVCodecContext *avctx, 

                                  UINT8 *buf, int buf_size)

{

    Mpeg1Context *s1 = avctx->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    int ext_type;



    init_get_bits(&s->gb, buf, buf_size);

    

    ext_type = get_bits(&s->gb, 4);

    switch(ext_type) {

    case 0x1:

        

        mpeg_decode_sequence_extension(s);

        break;

    case 0x3:

        

        mpeg_decode_quant_matrix_extension(s);

        break;

    case 0x8:

        

        mpeg_decode_picture_coding_extension(s);

        break;

    }

}

static void FUNC_0(AVCodecContext *VAR_0, 

                                  UINT8 *VAR_1, int VAR_2)

{

    Mpeg1Context *s1 = VAR_0->priv_data;

    MpegEncContext *s = &s1->mpeg_enc_ctx;

    int VAR_3;



    init_get_bits(&s->gb, VAR_1, VAR_2);

    

    VAR_3 = get_bits(&s->gb, 4);

    switch(VAR_3) {

    case 0x1:

        

        mpeg_decode_sequence_extension(s);

        break;

    case 0x3:

        

        mpeg_decode_quant_matrix_extension(s);

        break;

    case 0x8:

        

        mpeg_decode_picture_coding_extension(s);

        break;

    }

}

static void FUNC_0(AVCodecContext *VAR_0,
UINT8 *VAR_1, int VAR_2)
{ Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int VAR_3; init_get_bits(&s->gb, VAR_1, VAR_2); VAR_3 = get_bits(&s->gb, 4); switch(VAR_3) { case 0x1:
mpeg_decode_sequence_extension(s); break; case 0x3:
mpeg_decode_quant_matrix_extension(s); break; case 0x8:
mpeg_decode_picture_coding_extension(s); break; } }