diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-15 00:29:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-15 02:38:22 +0200 |
commit | c1b6235d4158b3771e2a2ee7d5754477df7edc59 (patch) | |
tree | dd6f21ba33aaf14f352f2437ec04fb974291e2af /libavcodec/pgssubdec.c | |
parent | dfac782b13fc607f7b18067635b07bbcabc4db8f (diff) | |
download | ffmpeg-c1b6235d4158b3771e2a2ee7d5754477df7edc59.tar.gz |
avcodec/vulkan_decode: Factor creating session params out, fix leak
All Vulkan HWAccels share the same boilerplate code for creating
session params and this includes a common bug: In case actually
creating the video session parameters fails, the buffer destined
to hold them leaks; in case of HEVC this is also true if
get_data_set_buf() fails.
This commit factors this code out and fixes the leak.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/pgssubdec.c')
0 files changed, 0 insertions, 0 deletions