mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavfi/tile: do not leak input frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
0be3be9011
commit
8fbf940e16
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue