]> git.sesse.net Git - x264/commitdiff
encoder/encoder.c: gcc < 3 compile fix
authorEric Petit <titer@videolan.org>
Fri, 28 Jan 2005 15:17:51 +0000 (15:17 +0000)
committerEric Petit <titer@videolan.org>
Fri, 28 Jan 2005 15:17:51 +0000 (15:17 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@111 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index f78d5af15e629c8c3c4a9d49e4ac687501785706..ad0731923e0b293067788b2b552d41610e3c7be8 100644 (file)
@@ -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 */