mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_dedot: Fix leak of AVFrame if making it writable fails
Even in this scenario, the frame still contains references to data that won't be freed if the frame isn't unreferenced. And the AVFrame itself will leak, too. Fixes Coverity issue #1441422. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6a67d518d6
commit
212077eda4
1 changed files with 2 additions and 1 deletions
|
|
@ -313,7 +313,8 @@ static int activate(AVFilterContext *ctx)
|
|||
FFMIN(s->planeheight[2],
|
||||
ff_filter_get_nb_threads(ctx)));
|
||||
}
|
||||
}
|
||||
} else
|
||||
av_frame_free(&out);
|
||||
} else if (!out) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue