Re: [FFmpeg-devel] [PATCH v2] avcodec/v4l2_m2m: Adapt to call close() on init fail

2020-05-06 Thread Andriy Gelman
On Tue, 28. Apr 22:54, Andriy Gelman wrote: > From: Andriy Gelman > > This fixes several mem leaks when init of encoder/decoder failed. > > Fixes ticket #8285 > > Signed-off-by: Andriy Gelman > --- > > Changes in v2: > - Use FF_CODEC_CAP_INIT_CLEANUP > > This patch supersedes: > > http

[FFmpeg-devel] [PATCH v2] avcodec/v4l2_m2m: Adapt to call close() on init fail

2020-04-28 Thread Andriy Gelman
From: Andriy Gelman This fixes several mem leaks when init of encoder/decoder failed. Fixes ticket #8285 Signed-off-by: Andriy Gelman --- Changes in v2: - Use FF_CODEC_CAP_INIT_CLEANUP This patch supersedes: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200310045541.13048-1-andri