Commit d2e7a5a6 authored by Fiona Glaser's avatar Fiona Glaser

Fix extremely rare infinite loop in 2-pass VBV

Implicit conversion from double->float lost enough precision to cause the loop termination condition to never trigger.
Bug report by Tal Aloni.
parent f3c9e6f3
......@@ -37,13 +37,13 @@ typedef struct
int pict_type;
int kept_as_ref;
float qscale;
double qscale;
int mv_bits;
int tex_bits;
int misc_bits;
uint64_t expected_bits; /*total expected bits up to the current frame (current one excluded)*/
double expected_vbv;
float new_qscale;
double new_qscale;
int new_qp;
int i_count;
int p_count;
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