You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -197,7 +197,7 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
|
|||||||
char name[16];
|
char name[16];
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
|
||||||
if (!*movie->file_name) {
|
if (!movie->file_name) {
|
||||||
av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
|
av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user