[FFmpeg-cvslog] lavu/hwcontext_vulkan: clear dangling pointers on map failure
Anton Khirnov
git at videolan.org
Fri Jan 21 10:49:46 EET 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jan 19 13:08:24 2022 +0100| [137c808f1aaf2b5641b0e7319f35bd9dd7866e6f] | committer: Anton Khirnov
lavu/hwcontext_vulkan: clear dangling pointers on map failure
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=137c808f1aaf2b5641b0e7319f35bd9dd7866e6f
---
libavutil/hwcontext_vulkan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 60a6cf6a91..ae19fc2ab6 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list