mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
avfilter/vf_mcdeint: free frame on error
Fixes CID1026766 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3ed56b3b39
commit
43487bc5c1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user