mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
better? scene change detection
Originally committed as revision 1314 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5f3ed1653f
commit
032011465b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user