return pred;
return ret;
static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, uint16_t **dc_val_ptr, int *dir_ptr){    int a, b, c, wrap, pred, scale;    uint16_t *dc_val;    /* find prediction */    if (n < 4) {	scale = s->y_dc_scale;    } else {	scale = s->c_dc_scale;    }    if(IS_3IV1)        scale= 8;    wrap= s->block_wrap[n];    dc_val = s->dc_val[0] + s->block_index[n];    /* B C     * A X      */    a = dc_val[ - 1];    b = dc_val[ - 1 - wrap];    c = dc_val[ - wrap];    /* outside slice handling (we cant do that by memset as we need the dc for error resilience) */    if(s->first_slice_line && n!=3){        if(n!=2) b=c= 1024;        if(n!=1 && s->mb_x == s->resync_mb_x) b=a= 1024;    }    if(s->mb_x == s->resync_mb_x && s->mb_y == s->resync_mb_y+1){        if(n==0 || n==4 || n==5)            b=1024;    }    if (abs(a - b) < abs(b - c)) {	pred = c;        *dir_ptr = 1; /* top */    } else {	pred = a;        *dir_ptr = 0; /* left */    }    /* we assume pred is positive */    pred = FASTDIV((pred + (scale >> 1)), scale);    /* prepare address for prediction update */    *dc_val_ptr = &dc_val[0];    return pred;}