Mercurial > libavcodec.hg
changeset 187:3f3b14d3a23d libavcodec
qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies <steve@daviesfam.org>
author | arpi_esp |
---|---|
date | Tue, 08 Jan 2002 00:28:55 +0000 |
parents | cf37da86d990 |
children | 5d56c2f7e712 |
files | mpegvideo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;