0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

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
This commit is contained in:
lorenm 2007-01-28 20:22:21 +00:00
parent 152284fb0f
commit 3a49ee1618

View File

@ -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;