From 9f8a17df72b9db86ea0591ecc924af60d84b4442 Mon Sep 17 00:00:00 2001 From: lorenm Date: Thu, 19 Oct 2006 08:15:47 +0000 Subject: make -passlogfile work with x264 again (broke in r20060) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20303 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_x264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index 346296ead2..c56d2cbfd6 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -119,8 +119,6 @@ int x264enc_set_param(m_option_t* opt, char* arg) 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 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width, 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; -- cgit v1.2.3