Browse Source

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>
tags/n2.0
Alexander Strasser 12 years ago
parent
commit
c679a1c358
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/src_movie.c

+ 1
- 1
libavfilter/src_movie.c View File

@@ -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…
Cancel
Save