void MPV_common_end(MpegEncContext *s)

{

    int i;



    if (s->motion_val)

        free(s->motion_val);

    if (s->h263_pred) {

        free(s->dc_val[0]);

        free(s->ac_val[0]);

        free(s->coded_block);

        free(s->mbintra_table);

    }

    if (s->mbskip_table)

        free(s->mbskip_table);

    for(i=0;i<3;i++) {

        free(s->last_picture_base[i]);

        free(s->next_picture_base[i]);

        if (s->has_b_frames)

            free(s->aux_picture_base[i]);

    }

    s->context_initialized = 0;

}

void MPV_common_end(MpegEncContext *s)

{

    int i;



    if (s->motion_val)

        free(s->motion_val);

    if (s->h263_pred) {

        free(s->dc_val[0]);

        free(s->ac_val[0]);

        free(s->coded_block);

        free(s->mbintra_table);

    }

    if (s->mbskip_table)

        free(s->mbskip_table);

    for(i=0;i<3;i++) {

        free(s->last_picture_base[i]);

        free(s->next_picture_base[i]);

        if (s->has_b_frames)

            free(s->aux_picture_base[i]);

    }

    s->context_initialized = 0;

}

        free(s->mbintra_table);         free(s->mbintra_table);
void FUNC_0(MpegEncContext *VAR_0)

{

    int VAR_1;



    if (VAR_0->motion_val)

        free(VAR_0->motion_val);

    if (VAR_0->h263_pred) {

        free(VAR_0->dc_val[0]);

        free(VAR_0->ac_val[0]);

        free(VAR_0->coded_block);

        free(VAR_0->mbintra_table);

    }

    if (VAR_0->mbskip_table)

        free(VAR_0->mbskip_table);

    for(VAR_1=0;VAR_1<3;VAR_1++) {

        free(VAR_0->last_picture_base[VAR_1]);

        free(VAR_0->next_picture_base[VAR_1]);

        if (VAR_0->has_b_frames)

            free(VAR_0->aux_picture_base[VAR_1]);

    }

    VAR_0->context_initialized = 0;

}

void FUNC_0(MpegEncContext *VAR_0)
{ int VAR_1; if (VAR_0->motion_val)
free(VAR_0->motion_val); if (VAR_0->h263_pred) { free(VAR_0->dc_val[0]); free(VAR_0->ac_val[0]); free(VAR_0->coded_block); free(VAR_0->mbintra_table); } if (VAR_0->mbskip_table)
free(VAR_0->mbskip_table); for(VAR_1=0;VAR_1<3;VAR_1++) { free(VAR_0->last_picture_base[VAR_1]); free(VAR_0->next_picture_base[VAR_1]); if (VAR_0->has_b_frames)
free(VAR_0->aux_picture_base[VAR_1]); } VAR_0->context_initialized = 0; }