aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Davies <steve@daviesfam.org>2002-01-08 00:28:55 +0000
committerArpi <arpi@thot.banki.hu>2002-01-08 00:28:55 +0000
commitfb4a9613ee4c03e38b4b85ad2d375bbdc856118a (patch)
tree73b4a03c249dba25704ed07dbfecb61869e947a2
parent3046f265b9a12928c2cdd2226f1a78ef5e2bf937 (diff)
downloadffmpeg-fb4a9613ee4c03e38b4b85ad2d375bbdc856118a.tar.gz
qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies <steve@daviesfam.org>
Originally committed as revision 247 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 80a35635d6..ec16e78699 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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;