0002-add-missing-stdint.h-to-mfxparser-cpp.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 8fb9f5feaf738f69b278d2cac15baada1447aae8 Mon Sep 17 00:00:00 2001
  2. From: Sergei Trofimovich <slyich@gmail.com>
  3. Date: Mon, 28 Nov 2022 23:31:29 +0000
  4. Subject: [PATCH] add missing <stdint.h> to mfxparser.cpp
  5. Without the change build fails on `gcc-13` as:
  6. MediaSDK/api/mfx_dispatch/linux/mfxparser.cpp: In function 'std::string MFX::printCodecId(mfxU32)':
  7. MediaSDK/api/mfx_dispatch/linux/mfxparser.cpp:60:3: error: 'uint8_t' was not declared in this scope
  8. 60 | uint8_t* data = reinterpret_cast<uint8_t*>(&id);
  9. | ^~~~~~~
  10. Upstream: https://github.com/Intel-Media-SDK/MediaSDK/pull/2998
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. api/mfx_dispatch/linux/mfxparser.cpp | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/api/mfx_dispatch/linux/mfxparser.cpp b/api/mfx_dispatch/linux/mfxparser.cpp
  16. index 9d3823ec3e..12e46d1881 100644
  17. --- a/api/mfx_dispatch/linux/mfxparser.cpp
  18. +++ b/api/mfx_dispatch/linux/mfxparser.cpp
  19. @@ -20,6 +20,7 @@
  20. #include <ctype.h>
  21. #include <stdio.h>
  22. +#include <stdint.h>
  23. #include <stdlib.h>
  24. #include <string.h>