# HG changeset patch # User lorenm # Date 1161245747 0 # Node ID b69c85b29cb596ddcc34922850941e25c5eeca05 # Parent 041a388f21829bc2427ed8b9deb9cb156f8b629a make -passlogfile work with x264 again (broke in r20060) diff -r 041a388f2182 -r b69c85b29cb5 libmpcodecs/ve_x264.c --- 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(¶m, "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(¶m, "stats", passtmpfile); + switch(outfmt) { case IMGFMT_I420: param.i_csp = X264_CSP_I420;