# HG changeset patch # User arpi_esp # Date 1010449735 0 # Node ID 3f3b14d3a23d938805501b3c24c8a2893deaf246 # Parent cf37da86d990a63047a63c3e253bcef6a0c17a14 qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies diff -r cf37da86d990 -r 3f3b14d3a23d mpegvideo.c --- a/mpegvideo.c Tue Jan 08 00:21:41 2002 +0000 +++ b/mpegvideo.c Tue Jan 08 00:28:55 2002 +0000 @@ -1310,9 +1310,9 @@ */ 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;