mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
make -passlogfile work with x264 again (broke in r20060)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20303 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7abe5a4ef8
commit
9f8a17df72
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user