# HG changeset patch # User michael # Date 1166578217 0 # Node ID eb0ae1ce40a5de5db24237c4dc09ca96235e7ddc # Parent f9325f2bc7629f07262037c3f00906d1f1dc6ba9 dont favor the zero MV if mv0 is used (psnr per bitrate gains ranging from 0 to 0.14, most are <=0.04 though) diff -r f9325f2bc762 -r eb0ae1ce40a5 motion_est_template.c --- a/motion_est_template.c Mon Dec 18 22:43:09 2006 +0000 +++ b/motion_est_template.c Wed Dec 20 01:30:17 2006 +0000 @@ -1023,6 +1023,8 @@ dmin= cmp(s, 0, 0, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags); map[0]= map_generation; score_map[0]= dmin; + if(s->flags&CODEC_FLAG_MV0) + dmin += (mv_penalty[pred_x] + mv_penalty[pred_y])*penalty_factor; /* first line */ if (s->first_slice_line) {