Commit 5b750c35 authored by Eric Petit's avatar Eric Petit

encoder/encoder.c: gcc < 3 compile fix


git-svn-id: svn://svn.videolan.org/x264/trunk@111 df754926-b1dd-0310-bc7b-ec298dee348c
parent 3f098e96
......@@ -1120,14 +1120,14 @@ do_encode:
int64_t i_inter_cost = h->stat.frame.i_inter_cost;
int64_t i_intra_cost = h->stat.frame.i_intra_cost;
float f_bias;
int i_gop_size = h->fenc->i_frame - h->frames.i_last_idr;
float f_thresh_max = h->param.i_scenecut_threshold / 100.0;
/* ratio of 10 pulled out of thin air */
float f_thresh_min = f_thresh_max * h->param.i_keyint_min
/ ( h->param.i_keyint_max * 4 );
if( h->param.i_keyint_min == h->param.i_keyint_max )
f_thresh_min= f_thresh_max;
float f_bias;
int i_gop_size = h->fenc->i_frame - h->frames.i_last_idr;
/* macroblock_analyse() doesn't further analyse skipped mbs,
* so we have to guess their cost */
......
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