diff motion_est.c @ 268:09ae29b27ed9 libavcodec

hopefully better bitrate controll
author michaelni
date Sun, 17 Mar 2002 16:31:38 +0000
parents 16cd8a9c4da4
children 7ebb3f9aaf3b
line wrap: on
line diff
--- a/motion_est.c	Sat Mar 16 02:41:00 2002 +0000
+++ b/motion_est.c	Sun Mar 17 16:31:38 2002 +0000
@@ -460,6 +460,7 @@
     varc = (varc >> 8) - (sum * sum);
     s->mb_var[s->mb_width * mb_y + mb_x] = varc;
     s->avg_mb_var += varc;
+    s->mc_mb_var += vard;
      
 #if 0
     printf("varc=%4d avg_var=%4d (sum=%4d) vard=%4d mx=%2d my=%2d\n",