[FFmpeg-cvslog] lavfi/src_movie: Check pointer is not NULL before deref

Alexander Strasser git at videolan.org
Tue Jun 18 00:04:22 CEST 2013


ffmpeg | branch: master | Alexander Strasser <eclipse7 at gmx.net> | Sun Jun 16 20:31:08 2013 +0200| [c679a1c358c30ec38ae3b1ac3ee2c62efc2f32e2] | committer: 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: Alexander Strasser <eclipse7 at gmx.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c679a1c358c30ec38ae3b1ac3ee2c62efc2f32e2
---

 libavfilter/src_movie.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index af5db7a..f52d3a4 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);
     }



More information about the ffmpeg-cvslog mailing list