x265: Fix error: 'uint8_t'

Include cstdint in json11.cpp Fixes:

json11.cpp:101:32: error: 'uint8_t' does not name a type

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Leon Anavi 2025-05-05 18:16:23 +03:00 committed by Khem Raj
parent 14fa41b559
commit 13733bc999
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 6cbd417be3f6bcbda77464db6a4d83cef3df8904 Mon Sep 17 00:00:00 2001
From: Leon Anavi <leon.anavi@konsulko.com>
Date: Mon, 5 May 2025 14:08:36 +0000
Subject: [PATCH] json11.cpp: Include cstdint
Fixes:
json11.cpp:101:32: error: 'uint8_t' does not name a type
This work was sponsored by GOVCERT.LU.
Upstream-Status: Pending [https://bitbucket.org/multicoreware/x265_git/pull-requests/33]
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
dynamicHDR10/json11/json11.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/dynamicHDR10/json11/json11.cpp b/dynamicHDR10/json11/json11.cpp
index 7625777..74f990a 100644
--- a/dynamicHDR10/json11/json11.cpp
+++ b/dynamicHDR10/json11/json11.cpp
@@ -25,6 +25,7 @@
#include <cstdlib>
#include <cstdio>
#include <limits>
+#include <cstdint>
#if _MSC_VER
#pragma warning(disable: 4510) //const member cannot be default initialized
--
2.39.5

View File

@ -8,7 +8,10 @@ LIC_FILES_CHKSUM = "file://../COPYING;md5=c9e0427bc58f129f99728c62d4ad4091"
DEPENDS = "nasm-native gnutls zlib libpcre numactl"
SRC_URI = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_${PV}.tar.gz"
SRC_URI = " \
https://bitbucket.org/multicoreware/x265_git/downloads/x265_${PV}.tar.gz \
file://0001-json11.cpp-Include-cstdint.patch \
"
SRC_URI[sha256sum] = "a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29"
S = "${WORKDIR}/x265_${PV}/source"