Commit 03201146 authored by Michael Niedermayer's avatar Michael Niedermayer

better? scene change detection

Originally committed as revision 1314 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5f3ed165
......@@ -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