From: Eric Petit Date: Fri, 28 Jan 2005 15:17:51 +0000 (+0000) Subject: encoder/encoder.c: gcc < 3 compile fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b750c35db61a4d26e8801c175da422d11748aad;p=libx264 encoder/encoder.c: gcc < 3 compile fix git-svn-id: svn://svn.videolan.org/x264/trunk@111 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/encoder.c b/encoder/encoder.c index f78d5af1..ad073192 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 */