static int check_slice_end(RV34DecContext *r, MpegEncContext *s)

{

    int bits;

    if(s->mb_y >= s->mb_height)

        return 1;

    if(!s->mb_num_left)

        return 1;

    if(r->s.mb_skip_run > 1)

        return 0;

    bits = get_bits_left(&s->gb);

    if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)))

        return 1;

    return 0;

}

static int check_slice_end(RV34DecContext *r, MpegEncContext *s)

{

    int bits;

    if(s->mb_y >= s->mb_height)

        return 1;

    if(!s->mb_num_left)

        return 1;

    if(r->s.mb_skip_run > 1)

        return 0;

    bits = get_bits_left(&s->gb);

    if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)))

        return 1;

    return 0;

}

static int FUNC_0(RV34DecContext *VAR_0, MpegEncContext *VAR_1)

{

    int VAR_2;

    if(VAR_1->mb_y >= VAR_1->mb_height)

        return 1;

    if(!VAR_1->mb_num_left)

        return 1;

    if(VAR_0->VAR_1.mb_skip_run > 1)

        return 0;

    VAR_2 = get_bits_left(&VAR_1->gb);

    if(VAR_2 < 0 || (VAR_2 < 8 && !show_bits(&VAR_1->gb, VAR_2)))

        return 1;

    return 0;

}

static int FUNC_0(RV34DecContext *VAR_0, MpegEncContext *VAR_1)
{ int VAR_2; if(VAR_1->mb_y >= VAR_1->mb_height)
return 1; if(!VAR_1->mb_num_left)
return 1; if(VAR_0->VAR_1.mb_skip_run > 1)
return 0; VAR_2 = get_bits_left(&VAR_1->gb); if(VAR_2 < 0 || (VAR_2 < 8 && !show_bits(&VAR_1->gb, VAR_2)))
return 1; return 0; }