mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavu/hwcontext_vulkan: clear dangling pointers on map failure
This commit is contained in:
parent
2f0a214a62
commit
137c808f1a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user