summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ve_x264.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/ve_x264.c')
-rw-r--r--libmpcodecs/ve_x264.c4
1 files changed, 2 insertions, 2 deletions
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(&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 @@ 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(&param, "stats", passtmpfile);
+
switch(outfmt) {
case IMGFMT_I420:
param.i_csp = X264_CSP_I420;