From c679a1c358c30ec38ae3b1ac3ee2c62efc2f32e2 Mon Sep 17 00:00:00 2001 From: Alexander Strasser Date: Sun, 16 Jun 2013 20:31:08 +0200 Subject: [PATCH] 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 --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index af5db7a8d9..f52d3a42c6 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -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); }