[FFmpeg-devel] [PATCH v1 1/2] avfilter/vf_colormatrix: av_frame_free(&in) in case of error
Limin Wang
lance.lmwang at gmail.com
Tue Dec 24 03:14:13 EET 2019
On Wed, Nov 27, 2019 at 06:46:50PM +0800, lance.lmwang at gmail.com wrote:
> 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);
ping
> }
> --
> 2.21.0
>
More information about the ffmpeg-devel
mailing list