if (get_bits1(&s->gb) != 0)
if (get_bits1(&s->gb) != 0) { fprintf(stderr, "H263 PB frame not supported\n");
int h263_decode_picture_header(MpegEncContext *s){    int format, width, height;    /* picture header */    if (get_bits(&s->gb, 22) != 0x20)        return -1;    s->picture_number = get_bits(&s->gb, 8); /* picture timestamp */        if (get_bits1(&s->gb) != 1)        return -1;	/* marker */    if (get_bits1(&s->gb) != 0)        return -1;	/* h263 id */    skip_bits1(&s->gb);	/* split screen off */    skip_bits1(&s->gb);	/* camera  off */    skip_bits1(&s->gb);	/* freeze picture release off */    /* Reset GOB number */    s->gob_number = 0;            format = get_bits(&s->gb, 3);    if (format != 7 && format != 6) {        s->h263_plus = 0;        /* H.263v1 */        width = h263_format[format][0];        height = h263_format[format][1];        if (!width)            return -1;                s->width = width;        s->height = height;        s->pict_type = I_TYPE + get_bits1(&s->gb);        s->unrestricted_mv = get_bits1(&s->gb);         s->h263_long_vectors = s->unrestricted_mv;        if (get_bits1(&s->gb) != 0)            return -1;	/* SAC: off */        if (get_bits1(&s->gb) != 0) {            s->mv_type = MV_TYPE_8X8; /* Advanced prediction mode */        }                   if (get_bits1(&s->gb) != 0)            return -1;	/* not PB frame */        s->qscale = get_bits(&s->gb, 5);        skip_bits1(&s->gb);	/* Continuous Presence Multipoint mode: off */    } else {        int ufep;                /* H.263v2 */        s->h263_plus = 1;        ufep = get_bits(&s->gb, 3); /* Update Full Extended PTYPE */                if (ufep == 1) {            /* OPPTYPE */                   format = get_bits(&s->gb, 3);            skip_bits(&s->gb,1); /* Custom PCF */            s->umvplus_dec = get_bits(&s->gb, 1); /* Unrestricted Motion Vector */            skip_bits1(&s->gb); /* Syntax-based Arithmetic Coding (SAC) */            if (get_bits1(&s->gb) != 0) {                s->mv_type = MV_TYPE_8X8; /* Advanced prediction mode */            }            if (get_bits1(&s->gb) != 0) { /* Advanced Intra Coding (AIC) */                s->h263_aic = 1;            }            skip_bits(&s->gb, 7);            skip_bits(&s->gb, 3); /* Reserved */        } else if (ufep != 0)            return -1;                    /* MPPTYPE */        s->pict_type = get_bits(&s->gb, 3) + 1;        if (s->pict_type != I_TYPE &&            s->pict_type != P_TYPE)            return -1;        skip_bits(&s->gb, 2);        s->no_rounding = get_bits1(&s->gb);        //fprintf(stderr, "\nRTYPE: %d", s->no_rounding);        skip_bits(&s->gb, 4);                /* Get the picture dimensions */        if (ufep) {            if (format == 6) {                /* Custom Picture Format (CPFMT) */                skip_bits(&s->gb, 4); /* aspect ratio */                width = (get_bits(&s->gb, 9) + 1) * 4;                skip_bits1(&s->gb);                height = get_bits(&s->gb, 9) * 4;#ifdef DEBUG                 fprintf(stderr,"\nH.263+ Custom picture: %dx%d\n",width,height);#endif                        }            else {                width = h263_format[format][0];                height = h263_format[format][1];            }            if ((width == 0) || (height == 0))                return -1;            s->width = width;            s->height = height;            if (s->umvplus_dec) {                skip_bits1(&s->gb); /* Unlimited Unrestricted Motion Vectors Indicator (UUI) */            }        }                    s->qscale = get_bits(&s->gb, 5);    }    /* PEI */    while (get_bits1(&s->gb) != 0) {        skip_bits(&s->gb, 8);    }    s->f_code = 1;    return 0;}