changeset 20297:b69c85b29cb5

make -passlogfile work with x264 again (broke in r20060)
author lorenm
date Thu, 19 Oct 2006 08:15:47 +0000
parents 041a388f2182
children 3c469a2030e7
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Wed Oct 18 21:19:51 2006 +0000
+++ b/libmpcodecs/ve_x264.c	Thu Oct 19 08:15:47 2006 +0000
@@ -119,8 +119,6 @@
             return 0;
     }
 
-    x264_param_parse(&param, "stats", passtmpfile);
-
     if(param.rc.b_stat_write) {
         /* Adjust or disable some flags to gain speed in the first pass */
         if(turbo == 1)
@@ -157,6 +155,8 @@
     param.vui.i_sar_width = d_width*height;
     param.vui.i_sar_height = d_height*width;
 
+    x264_param_parse(&param, "stats", passtmpfile);
+
     switch(outfmt) {
     case IMGFMT_I420:
         param.i_csp = X264_CSP_I420;