From a21dc05006b721140fefdc70acdd74d8fd0c85f5 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 21 Oct 2006 19:34:06 +0000 Subject: 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 --- libmpcodecs/ve_x264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index 9c24852055..db1caa9887 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -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; -- cgit v1.2.3