1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00

vulkan_decode: fix small memory leak

This requires using the new AVHWFramesContext.opaque field, as
otherwise, the profile attached to the decoder will be freed
before the frames context, rendering the frames context useless.
This commit is contained in:
Lynne 2023-06-13 06:13:10 +02:00
parent 13ff3aa9e7
commit d9af84426b
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -584,6 +584,8 @@ static void free_common(void *opaque, uint8_t *data)
s->hwctx->alloc);
ff_vk_uninit(s);
av_free(ctx);
}
static int vulkan_decode_bootstrap(AVCodecContext *avctx, AVBufferRef *frames_ref)