mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
avfilter/vf_colormatrix: fix memleak on error
Fixes CID1197065 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5027f39712
commit
e36aaeca3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user