diff options
author | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-28 20:22:21 +0000 |
---|---|---|
committer | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-01-28 20:22:21 +0000 |
commit | 3a49ee161843cc29f50c8afdcb0d613feecd32ab (patch) | |
tree | c58922d08ccbc4534ae8de24ae709e6ba9f49e38 /libmpcodecs | |
parent | 152284fb0f906aa9f12bdbd266173be255937706 (diff) | |
download | mpv-3a49ee161843cc29f50c8afdcb0d613feecd32ab.tar.bz2 mpv-3a49ee161843cc29f50c8afdcb0d613feecd32ab.tar.xz |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_x264.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |