aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-05 22:22:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-05 22:22:53 +0000
commit032011465be65a91f1e260ddc881ab1226a9e466 (patch)
tree97ccbdd850ff772181e1a8e5f65625e789d52109
parent5f3ed1653fe44f69131b394d48281569cbf519e3 (diff)
downloadffmpeg-032011465be65a91f1e260ddc881ab1226a9e466.tar.gz
better? scene change detection
Originally committed as revision 1314 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/motion_est.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c
index fa6c3ee6b1..3c688f7e03 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;