avfilter/vf_mcdeint: free frame on error

Fixes CID1026766
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-03 15:41:29 +02:00
parent 3ed56b3b39
commit 43487bc5c1
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}