diff options
author | Alexander Strasser <eclipse7@gmx.net> | 2013-06-16 22:31:08 +0400 |
---|---|---|
committer | Alexander Strasser <eclipse7@gmx.net> | 2013-06-18 02:02:30 +0400 |
commit | c679a1c358c30ec38ae3b1ac3ee2c62efc2f32e2 (patch) | |
tree | 79b2afb9bb18b66e9c185d17748a96026676eb63 /libavfilter/src_movie.c | |
parent | b24f15c45ed5328844367d88ebe71e0f142b7187 (diff) |
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>
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r-- | libavfilter/src_movie.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |