[FFmpeg-cvslog] hwcontext_vulkan: avoid using 64-bit enums

Lynne git at videolan.org
Thu Jan 27 11:27:48 EET 2022


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Thu Jan 27 10:27:09 2022 +0100| [3c831847a8813c30c78fc664c67bbd623e0c8907] | committer: Lynne

hwcontext_vulkan: avoid using 64-bit enums

MSVC (2016, but possibly more) still force enums to be basic ints.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c831847a8813c30c78fc664c67bbd623e0c8907
---

 libavutil/vulkan_functions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/vulkan_functions.h b/libavutil/vulkan_functions.h
index 96922d7286..d15a5d9a42 100644
--- a/libavutil/vulkan_functions.h
+++ b/libavutil/vulkan_functions.h
@@ -38,7 +38,7 @@ typedef enum FFVulkanExtensions {
     FF_VK_EXT_EXTERNAL_WIN32_SEM     = 1ULL <<  7, /* VK_KHR_external_semaphore_win32 */
 #endif
 
-    FF_VK_EXT_NO_FLAG                = 1ULL << 63,
+    FF_VK_EXT_NO_FLAG                = 1ULL << 31,
 } FFVulkanExtensions;
 
 /* Macro containing every function that we utilize in our codebase */



More information about the ffmpeg-cvslog mailing list