changeset 913:51f3b644ae30 libavcodec

better? scene change detection
author michaelni
date Thu, 05 Dec 2002 22:22:53 +0000
parents 4a1e6bb1f41c
children 22cec68e6f01
files motion_est.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Thu Dec 05 19:18:13 2002 +0000
+++ b/motion_est.c	Thu Dec 05 22:22:53 2002 +0000
@@ -1131,7 +1131,7 @@
         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;