Commit b84ceaf7 authored by michaelni's avatar michaelni

better? scene change detection


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1314 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 71674f17
......@@ -1131,7 +1131,7 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
if (vard <= 64 || vard < varc)
s->scene_change_score+= ff_sqrt(vard) - ff_sqrt(varc);
else
s->scene_change_score+= 20;
s->scene_change_score+= s->qscale;
if (vard*2 + 200 > varc)
mb_type|= MB_TYPE_INTRA;
......
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