diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-04-11 09:43:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-11 09:43:05 +0000 |
commit | a7beab731d1579967de16ebdf33805189fbd087f (patch) | |
tree | 834e1d2a69fe6e89e91fa49de0745bd6b442fd92 | |
parent | 2f5feea48ba72b5b80a83a7d3142626555264c37 (diff) | |
download | ffmpeg-a7beab731d1579967de16ebdf33805189fbd087f.tar.gz |
bunch of small thing patch by (Roman Shaposhnick <rvs at sun dot com>)
Originally committed as revision 1753 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | ffserver.c | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -45,6 +45,9 @@ case "$cpu" in mips) cpu="mips" ;; + sun4u) + cpu="sparc64" + ;; *) cpu="unknown" ;; diff --git a/ffserver.c b/ffserver.c index 8b220b48f6..ceca3df824 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3823,8 +3823,11 @@ static int parse_ffconfig(const char *filename) if (!argbuf[0]) break; - feed->child_argv[i] = av_malloc(strlen(argbuf + 1)); - strcpy(feed->child_argv[i], argbuf); + 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(30 + strlen(feed->filename)); |