qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies <steve...
authorStephen Davies <steve@daviesfam.org>
Tue, 8 Jan 2002 00:28:55 +0000 (00:28 +0000)
committerArpi <arpi@thot.banki.hu>
Tue, 8 Jan 2002 00:28:55 +0000 (00:28 +0000)
Originally committed as revision 247 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 80a3563..ec16e78 100644 (file)
@@ -1310,9 +1310,9 @@ static void rate_control_init(MpegEncContext *s)
  */
 static int rate_estimate_qscale(MpegEncContext *s)
 {
-    INT64 total_bits = s->total_bits;
+    INT64 diff, total_bits = s->total_bits;
     float q;
-    int qscale, diff, qmin;
+    int qscale, qmin;
 
     if (s->pict_type == I_TYPE) {
         s->wanted_bits += s->I_frame_bits;