aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lcldec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-15 00:29:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-15 02:38:22 +0200
commitc1b6235d4158b3771e2a2ee7d5754477df7edc59 (patch)
treedd6f21ba33aaf14f352f2437ec04fb974291e2af /libavcodec/lcldec.c
parentdfac782b13fc607f7b18067635b07bbcabc4db8f (diff)
downloadffmpeg-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/lcldec.c')
0 files changed, 0 insertions, 0 deletions