diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 15:41:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 15:41:29 +0200 |
commit | 43487bc5c10a99201dfbca7520530431a378901d (patch) | |
tree | ce51234d495c44320deefb0d7c218268ca3cb178 /libavfilter/vf_mcdeint.c | |
parent | 3ed56b3b3992c85685aed405003caa5a8433eb53 (diff) | |
download | ffmpeg-43487bc5c10a99201dfbca7520530431a378901d.tar.gz |
avfilter/vf_mcdeint: free frame on error
Fixes CID1026766
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_mcdeint.c')
-rw-r--r-- | libavfilter/vf_mcdeint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_mcdeint.c b/libavfilter/vf_mcdeint.c index 99030364a7..4bd11a00d3 100644 --- a/libavfilter/vf_mcdeint.c +++ b/libavfilter/vf_mcdeint.c @@ -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); } |