lavfi/src_movie: Check pointer is not NULL before deref
authorAlexander Strasser <eclipse7@gmx.net>
Sun, 16 Jun 2013 18:31:08 +0000 (20:31 +0200)
committerAlexander Strasser <eclipse7@gmx.net>
Mon, 17 Jun 2013 22:02:30 +0000 (00:02 +0200)
Also do not check against empty string, the lower levels should
be able to deal with it.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
libavfilter/src_movie.c

index af5db7a..f52d3a4 100644 (file)
@@ -197,7 +197,7 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
     char name[16];
     AVStream *st;
 
-    if (!*movie->file_name) {
+    if (!movie->file_name) {
         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
         return AVERROR(EINVAL);
     }