diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-08-22 20:31:22 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-08-23 10:28:29 +0000 |
commit | 8fbf940e167389c67a5eb869901773fcc517113d (patch) | |
tree | b36aed37134d1f9c52d64c8bdcb3e4d8c65f4d7d /libavfilter | |
parent | 0be3be9011963adfdb9ad15890dabb558cd36f5a (diff) | |
download | ffmpeg-8fbf940e167389c67a5eb869901773fcc517113d.tar.gz |
lavfi/tile: do not leak input frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_tile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c index fb3ac859c4..910a9fc96e 100644 --- a/libavfilter/vf_tile.c +++ b/libavfilter/vf_tile.c @@ -172,8 +172,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref) if (!tile->current) { tile->out_ref = ff_get_video_buffer(outlink, outlink->w, outlink->h); - if (!tile->out_ref) + if (!tile->out_ref) { + av_frame_free(&picref); return AVERROR(ENOMEM); + } av_frame_copy_props(tile->out_ref, picref); tile->out_ref->width = outlink->w; tile->out_ref->height = outlink->h; |