mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
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>
This commit is contained in:
parent
b24f15c45e
commit
c679a1c358
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user