# HG changeset patch # User michael # Date 1115300428 0 # Node ID 8e42a0463f6866ef170ff0a4fa51ef914e153c2b # Parent 240e17c3cb2dadb66901cc6fa6761dea822e17e8 fix segfault with 'ffmpeg -i 1.avi -cmp 257 -4mv 2.avi' diff -r 240e17c3cb2d -r 8e42a0463f68 motion_est.c --- a/motion_est.c Thu May 05 12:37:38 2005 +0000 +++ b/motion_est.c Thu May 05 13:40:28 2005 +0000 @@ -269,7 +269,7 @@ // 8x8 fullpel search would need a 4x4 chroma compare, which we dont have yet, and even if we had the motion estimation code doesnt expect it if(s->codec_id != CODEC_ID_SNOW){ - if((c->avctx->me_cmp&FF_CMP_CHROMA) && !s->dsp.me_cmp[2]){ + if((c->avctx->me_cmp&FF_CMP_CHROMA)/* && !s->dsp.me_cmp[2]*/){ s->dsp.me_cmp[2]= zero_cmp; } if((c->avctx->me_sub_cmp&FF_CMP_CHROMA) && !s->dsp.me_sub_cmp[2]){