[FFmpeg-cvslog] avfilter/vf_mix: check if array is available

Paul B Mahol git at videolan.org
Mon Apr 13 17:47:49 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 13 16:44:01 2020 +0200| [70f866ad1ba6737d9a1a79d2531412ca91687ba1] | committer: Paul B Mahol

avfilter/vf_mix: check if array is available

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

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

diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c
index 9e1ae79e00..f418c6fba8 100644
--- a/libavfilter/vf_mix.c
+++ b/libavfilter/vf_mix.c
@@ -289,7 +289,7 @@ static av_cold void uninit(AVFilterContext *ctx)
         for (i = 0; i < ctx->nb_inputs; i++)
             av_freep(&ctx->input_pads[i].name);
     } else {
-        for (i = 0; i < s->nb_frames; i++)
+        for (i = 0; i < s->nb_frames && s->frames; i++)
             av_frame_free(&s->frames[i]);
     }
     av_freep(&s->frames);



More information about the ffmpeg-cvslog mailing list