From 032011465be65a91f1e260ddc881ab1226a9e466 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 5 Dec 2002 22:22:53 +0000 Subject: [PATCH] better? scene change detection Originally committed as revision 1314 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/motion_est.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index fa6c3ee..3c688f7 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -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; -- 2.7.4