You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/tile: do not leak input frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user