diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-11-14 11:03:56 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-14 10:09:57 +0100 |
commit | 26afdbcfc0ecd646c6d829b781e0a53d6b289186 (patch) | |
tree | ffd6093fcc869fc52bf555550da69dcc125464cc | |
parent | a9ba9268d7f7539621ddc94ef06b2f654d30a35e (diff) | |
download | ffmpeg-26afdbcfc0ecd646c6d829b781e0a53d6b289186.tar.gz |
ffserver: fix NULL dereference with quoted Stream name.
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 599f9be30b..18271ce202 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4270,7 +4270,7 @@ static int parse_ffconfig(const char *filename) stream = av_mallocz(sizeof(FFStream)); get_arg(stream->filename, sizeof(stream->filename), &p); q = strrchr(stream->filename, '>'); - if (*q) + if (q) *q = '\0'; for (s = first_stream; s; s = s->next) { |