[FFmpeg-cvslog] ffserver: fix NULL dereference with quoted Stream name.

Clément Bœsch git at videolan.org
Wed Nov 14 10:10:25 CET 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Wed Nov 14 11:03:56 2012 +0200| [26afdbcfc0ecd646c6d829b781e0a53d6b289186] | committer: Clément Bœsch

ffserver: fix NULL dereference with quoted Stream name.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26afdbcfc0ecd646c6d829b781e0a53d6b289186
---

 ffserver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffserver.c b/ffserver.c
index 599f9be..18271ce 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) {



More information about the ffmpeg-cvslog mailing list