1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

Add a call to x264enc_set_param in config, otherwise mencoder -ovc x264

would crash when no x264encopts specified.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20339 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-21 19:34:06 +00:00
parent 1730f7a8f4
commit a21dc05006

View File

@ -152,6 +152,8 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width,
mod->mux->bih->biHeight = height;
mod->mux->aspect = (float)d_width/d_height;
// make sure param is initialized
x264enc_set_param(NULL, "");
param.i_width = width;
param.i_height = height;
param.i_fps_num = mod->mux->h.dwRate;