You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavu/hwcontext_vulkan: clear dangling pointers on map failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user