changeset 20333:7f84082900a3

Add a call to x264enc_set_param in config, otherwise mencoder -ovc x264 would crash when no x264encopts specified.
author reimar
date Sat, 21 Oct 2006 19:34:06 +0000
parents f8ecbac45430
children 5fcc8a3b1e88
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Sat Oct 21 18:38:58 2006 +0000
+++ b/libmpcodecs/ve_x264.c	Sat Oct 21 19:34:06 2006 +0000
@@ -152,6 +152,8 @@
     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;