diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-01 00:22:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-01 00:22:00 +0000 |
commit | 6f55b11ec6da84a895a4cd15406e9cdbcc984e52 (patch) | |
tree | 91847b093fe36a28cfd2e6c6678f0bd31b77db47 /libavcodec | |
parent | b74ec69366ca84e1edb7df10d1111224ec8477ca (diff) | |
download | ffmpeg-6f55b11ec6da84a895a4cd15406e9cdbcc984e52.tar.gz |
1000l Fix snow regression test that i broke in r15135.
Originally committed as revision 15136 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/motion_est.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 5187ef7bb3..7c1fc677d2 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -240,7 +240,8 @@ int ff_init_me(MpegEncContext *s){ 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){ + //special case of snow is needed because snow uses its own iterative ME code + if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1 && s->avctx->codec_id != CODEC_ID_SNOW){ 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; } |