comparison motion_est.c @ 7765:72d421816e07 libavcodec

Warn the user about me_method values that are not supported. Fixes issue503
author michael
date Sun, 31 Aug 2008 23:55:47 +0000
parents 6aa2f54e6c98
children 10242bdaac34
comparison
equal deleted inserted replaced
7764:a34931a8fea9 7765:72d421816e07
238 238
239 if(FFMIN(s->avctx->dia_size, s->avctx->pre_dia_size) < -ME_MAP_SIZE){ 239 if(FFMIN(s->avctx->dia_size, s->avctx->pre_dia_size) < -ME_MAP_SIZE){
240 av_log(s->avctx, AV_LOG_ERROR, "ME_MAP size is too small for SAB diamond\n"); 240 av_log(s->avctx, AV_LOG_ERROR, "ME_MAP size is too small for SAB diamond\n");
241 return -1; 241 return -1;
242 } 242 }
243 if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1){
244 av_log(s->avctx, AV_LOG_ERROR, "me_method is only allowed to be set to zero and epzs; for hex,umh,full and others see dia_size\n");
245 return -1;
246 }
243 247
244 c->avctx= s->avctx; 248 c->avctx= s->avctx;
245 249
246 if(cache_size < 2*dia_size && !c->stride){ 250 if(cache_size < 2*dia_size && !c->stride){
247 av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n"); 251 av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n");