From 3a49ee161843cc29f50c8afdcb0d613feecd32ab Mon Sep 17 00:00:00 2001 From: lorenm Date: Sun, 28 Jan 2007 20:22:21 +0000 Subject: fix a segfault if -x264encopts is the last commandline option (with no argument) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22050 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_x264.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmpcodecs/ve_x264.c') diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index c240ad7927..517c9b1662 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -86,6 +86,11 @@ void x264enc_set_param(m_option_t* opt, char* arg) initted = 1; } + if(!arg) { + parse_error = 1; + return; + } + while(*arg) { char *name = arg; char *value; -- cgit v1.2.3