Commit 9a9f7dd1 authored by philipjsg's avatar philipjsg

Fix a horrible bug with the launch keyword not handling arguments of length 1!


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1761 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d8d181bd
...@@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename) ...@@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename)
if (!argbuf[0]) if (!argbuf[0])
break; break;
if (strlen(argbuf + 1)) { feed->child_argv[i] = av_malloc(strlen(argbuf) + 1);
feed->child_argv[i] = av_malloc(strlen(argbuf + 1)); strcpy(feed->child_argv[i], argbuf);
strcpy(feed->child_argv[i], argbuf);
} else
feed->child_argv[i] = NULL;
} }
feed->child_argv[i] = av_malloc(30 + strlen(feed->filename)); feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment