# HG changeset patch # User michael # Date 1220226947 0 # Node ID 72d421816e078b089a20c3524db2c0612c0582ad # Parent a34931a8fea94a4bd8cac73f23f3fe0edcf26753 Warn the user about me_method values that are not supported. Fixes issue503 diff -r a34931a8fea9 -r 72d421816e07 motion_est.c --- a/motion_est.c Sun Aug 31 22:49:42 2008 +0000 +++ b/motion_est.c Sun Aug 31 23:55:47 2008 +0000 @@ -240,6 +240,10 @@ av_log(s->avctx, AV_LOG_ERROR, "ME_MAP size is too small for SAB diamond\n"); return -1; } + if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1){ + 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"); + return -1; + } c->avctx= s->avctx;