summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colormatrix.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 01:25:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 01:25:00 +0200
commite36aaeca3a3043b95a02ced3f0e36643132e2e60 (patch)
tree6ff3590139af396c71a7beb2a53de5a896cdfb9c /libavfilter/vf_colormatrix.c
parent5027f39712fdce25b9008e72d52e5abfeefd5fe6 (diff)
avfilter/vf_colormatrix: fix memleak on error
Fixes CID1197065 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_colormatrix.c')
-rw-r--r--libavfilter/vf_colormatrix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c
index 43654ae36e..5ab175b65d 100644
--- a/libavfilter/vf_colormatrix.c
+++ b/libavfilter/vf_colormatrix.c
@@ -353,6 +353,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
case AVCOL_SPC_BT470BG : source = COLOR_MODE_BT601 ; 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(&out);
return AVERROR(EINVAL);
}
color->mode = source * 4 + color->dest;