Commit c679a1c3 authored by Alexander Strasser's avatar Alexander Strasser

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: 's avatarAlexander Strasser <eclipse7@gmx.net>
parent b24f15c4
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment