diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-13 22:05:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 9c6d8ae33c1666bbfb8411f2efb3208711486163 (patch) | |
tree | 634c5af3a1e10d85af4815c34b80b05b9e5d6df5 /libavcodec/nvenc.h | |
parent | 682574e1da9bd87b32d5d46143fe2b434f742259 (diff) | |
download | ffmpeg-9c6d8ae33c1666bbfb8411f2efb3208711486163.tar.gz |
avcodec/avrndec: Fix memleak on error
If ff_codec_open2_recursive() fails, the already allocated
AVCodecContext leaks. Fix this by setting the FF_CODEC_CAP_INIT_CLEANUP
flag.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 3c2128df7ffdb32a3ef34044f9a4c2f15dc1776f)
Diffstat (limited to 'libavcodec/nvenc.h')
0 files changed, 0 insertions, 0 deletions