Browse code

lavfi/src_movie: Check pointer is not NULL before deref

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>

Alexander Strasser authored on 2013/06/17 03:31:08
Showing 1 changed files
... ...
@@ -197,7 +197,7 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
197 197
     char name[16];
198 198
     AVStream *st;
199 199
 
200
-    if (!*movie->file_name) {
200
+    if (!movie->file_name) {
201 201
         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
202 202
         return AVERROR(EINVAL);
203 203
     }