lavu/hwcontext_vulkan: clear dangling pointers on map failure

This commit is contained in:
Anton Khirnov 2022-01-19 13:08:24 +01:00
parent 2f0a214a62
commit 137c808f1a

View File

@ -2927,6 +2927,7 @@ static int vulkan_map_from_drm(AVHWFramesContext *hwfc, AVFrame *dst,
fail:
vulkan_frame_free(hwfc->device_ctx->hwctx, (uint8_t *)f);
dst->data[0] = NULL;
return err;
}