Commit 43487bc5 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_mcdeint: free frame on error

Fixes CID1026766
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3ed56b3b
......@@ -278,8 +278,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
end:
av_free_packet(&pkt);
av_frame_free(&inpic);
if (ret < 0)
if (ret < 0) {
av_frame_free(&outpic);
return ret;
}
return ff_filter_frame(outlink, outpic);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment