comparison motion_est.c @ 7766:10242bdaac34 libavcodec

1000l Fix snow regression test that i broke in r15135.
author michael
date Mon, 01 Sep 2008 00:22:00 +0000
parents 72d421816e07
children dcfdb3352dde
comparison
equal deleted inserted replaced
7765:72d421816e07 7766:10242bdaac34
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){ 243 //special case of snow is needed because snow uses its own iterative ME code
244 if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1 && s->avctx->codec_id != CODEC_ID_SNOW){
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 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 return -1;
246 } 247 }
247 248
248 c->avctx= s->avctx; 249 c->avctx= s->avctx;