diff mbox series

[FFmpeg-devel,5/5] avfilter/movie: add null check

Message ID MN2PR04MB5981A7A7F25B641DF1023B3FBAB79@MN2PR04MB5981.namprd04.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel,1/5] avfilter/avfilter: Add avfilter_alloc() and avfilter_query_formats() for initializing filters without a graph
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Soft Works Oct. 13, 2021, 4:50 a.m. UTC
Signed-off-by: softworkz <softworkz@hotmail.com>
---
 libavfilter/src_movie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);