[FFmpeg-devel] [PATCH 5/5] avfilter/movie: add null check
Soft Works
softworkz at hotmail.com
Wed Oct 13 07:50:03 EEST 2021
Signed-off-by: softworkz <softworkz at hotmail.com>
---
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 573f363705..2002e176b3 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -332,7 +332,7 @@ static av_cold void movie_uninit(AVFilterContext *ctx)
int i;
for (i = 0; i < ctx->nb_outputs; i++) {
- if (movie->st[i].st)
+ if (movie->st && movie->st[i].st)
avcodec_free_context(&movie->st[i].codec_ctx);
}
av_freep(&movie->st);
--
2.30.2.windows.1
More information about the ffmpeg-devel
mailing list