mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Fix a horrible bug with the launch keyword not handling arguments of length 1!
Originally committed as revision 1761 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
be0d154911
commit
03ff071af9
@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename)
|
||||
if (!argbuf[0])
|
||||
break;
|
||||
|
||||
if (strlen(argbuf + 1)) {
|
||||
feed->child_argv[i] = av_malloc(strlen(argbuf + 1));
|
||||
strcpy(feed->child_argv[i], argbuf);
|
||||
} else
|
||||
feed->child_argv[i] = NULL;
|
||||
feed->child_argv[i] = av_malloc(strlen(argbuf) + 1);
|
||||
strcpy(feed->child_argv[i], argbuf);
|
||||
}
|
||||
|
||||
feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));
|
||||
|
Loading…
Reference in New Issue
Block a user