Commit f7521e14 authored by arpi_esp's avatar arpi_esp

qscale estimate fix, diff extended to 64bit wide. patch by Stephen Davies <steve@daviesfam.org>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@247 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b7923f74
...@@ -1310,9 +1310,9 @@ static void rate_control_init(MpegEncContext *s) ...@@ -1310,9 +1310,9 @@ static void rate_control_init(MpegEncContext *s)
*/ */
static int rate_estimate_qscale(MpegEncContext *s) static int rate_estimate_qscale(MpegEncContext *s)
{ {
INT64 total_bits = s->total_bits; INT64 diff, total_bits = s->total_bits;
float q; float q;
int qscale, diff, qmin; int qscale, qmin;
if (s->pict_type == I_TYPE) { if (s->pict_type == I_TYPE) {
s->wanted_bits += s->I_frame_bits; s->wanted_bits += s->I_frame_bits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment