Sep 15, 2023, 01:45 by [email protected]:

> 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.
>
> Signed-off-by: Andreas Rheinhardt <[email protected]>
> ---
>  libavcodec/vulkan_av1.c    | 28 ++++------------------------
>  libavcodec/vulkan_decode.c | 31 ++++++++++++++++++++++++++++++-
>  libavcodec/vulkan_decode.h |  5 +++--
>  libavcodec/vulkan_h264.c   | 28 ++++------------------------
>  libavcodec/vulkan_hevc.c   | 27 +++------------------------
>  5 files changed, 44 insertions(+), 75 deletions(-)
>

Patchset tested and reviewed, LGTM.
Thanks.
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to