if(s->avctx->codec->id!=CODEC_ID_MPEG4){ *xmax = s->mb_width*16; *ymax = s->mb_height*16; }else { *xmax = s->width; *ymax = s->height; }
*xmax = s->mb_width*16; *ymax = s->mb_height*16;
static inline void get_limits(MpegEncContext *s, int *range, int *xmin, int *ymin, int *xmax, int *ymax){    if(s->avctx->me_range) *range= s->avctx->me_range >> 1;    else                   *range= 16;    if (s->unrestricted_mv) {        *xmin = -16;        *ymin = -16;        if(s->avctx->codec->id!=CODEC_ID_MPEG4){            *xmax = s->mb_width*16;            *ymax = s->mb_height*16;        }else {            *xmax = s->width;            *ymax = s->height;        }    } else {        *xmin = 0;        *ymin = 0;        *xmax = s->mb_width*16 - 16;        *ymax = s->mb_height*16 - 16;    }        //FIXME try to limit x/y min/max if me_range is set}