CHECKED_ALLOCZ(pic->mbskip_table , s->mb_num * sizeof(UINT8)+1) CHECKED_ALLOCZ(pic->qscale_table , s->mb_num * sizeof(UINT8)) pic->qstride= s->mb_width;
CHECKED_ALLOCZ(pic->mbskip_table , s->mb_num * sizeof(UINT8)+1) CHECKED_ALLOCZ(pic->qscale_table , s->mb_num * sizeof(UINT8)) pic->qstride= s->mb_width; }
static int alloc_picture(MpegEncContext *s, Picture *pic){    if (s->encoding) {                CHECKED_ALLOCZ(pic->mb_var   , s->mb_num * sizeof(INT16))        CHECKED_ALLOCZ(pic->mc_mb_var, s->mb_num * sizeof(INT16))        CHECKED_ALLOCZ(pic->mb_mean  , s->mb_num * sizeof(INT8))    }    CHECKED_ALLOCZ(pic->mbskip_table , s->mb_num * sizeof(UINT8)+1) //the +1 is for the slice end check    CHECKED_ALLOCZ(pic->qscale_table , s->mb_num * sizeof(UINT8))    pic->qstride= s->mb_width;        return 0;fail: //for the CHECKED_ALLOCZ macro    return -1;}