Commit 7a52fddb authored by michael's avatar michael

dont favor the zero MV if mv0 is used (psnr per bitrate gains ranging from 0...

dont favor the zero MV if mv0 is used (psnr per bitrate gains ranging from 0 to 0.14, most are <=0.04 though)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7333 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6602e19c
......@@ -1023,6 +1023,8 @@ static av_always_inline int epzs_motion_search_internal(MpegEncContext * s, int
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment