[FFmpeg-devel] [PATCH v1 1/2] avfilter/vf_colormatrix: av_frame_free(&in) in case of error
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Wed Nov 27 12:46:50 EET 2019
From: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
libavfilter/vf_colormatrix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c
index 3a02e2b86e..3a0c3f01da 100644
--- a/libavfilter/vf_colormatrix.c
+++ b/libavfilter/vf_colormatrix.c
@@ -448,6 +448,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
case AVCOL_SPC_BT2020_CL : source = COLOR_MODE_BT2020 ; break;
default :
av_log(ctx, AV_LOG_ERROR, "Input frame does not specify a supported colorspace, and none has been specified as source either\n");
+ av_frame_free(&in);
av_frame_free(&out);
return AVERROR(EINVAL);
}
--
2.21.0
More information about the ffmpeg-devel
mailing list