diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c index ff7b9e0040..571b9d4597 100644 --- a/libavfilter/vf_colormatrix.c +++ b/libavfilter/vf_colormatrix.c @@ -353,6 +353,7 @@ static int filter_frame(AVFilterLink *link, AVFilterBufferRef *in) else process_frame_uyvy422(color, out, in); + avfilter_unref_bufferp(&in); return ff_filter_frame(outlink, out); }