Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Arkady L. Shane | 4f8f9540a5 | 23 hours ago |
@ -1 +1 @@
|
||||
x265*.tar.gz
|
||||
SOURCES/x265_3.6.tar.gz
|
||||
|
@ -0,0 +1 @@
|
||||
51fc4592a9f1e340d87a51233361cc5a3ffd739d SOURCES/x265_3.6.tar.gz
|
@ -0,0 +1,29 @@
|
||||
From 8454caf458c5f5d20cce711ff8ea8de55ec1ae50 Mon Sep 17 00:00:00 2001
|
||||
From: harlanc <hailiang8@staff.weibo.com>
|
||||
Date: Thu, 1 Dec 2022 07:46:13 +0000
|
||||
Subject: [PATCH] fix crash when SEI length is variable
|
||||
|
||||
---
|
||||
source/encoder/encoder.cpp | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
|
||||
index 0fea6553c..5a3fcafc7 100644
|
||||
--- a/source/encoder/encoder.cpp
|
||||
+++ b/source/encoder/encoder.cpp
|
||||
@@ -1103,6 +1103,12 @@ void Encoder::copyUserSEIMessages(Frame *frame, const x265_picture* pic_in)
|
||||
input = seiMsg;
|
||||
else
|
||||
input = pic_in->userSEI.payloads[i];
|
||||
+
|
||||
+ if (frame->m_userSEI.payloads[i].payload && (frame->m_userSEI.payloads[i].payloadSize < input.payloadSize))
|
||||
+ {
|
||||
+ delete[] frame->m_userSEI.payloads[i].payload;
|
||||
+ frame->m_userSEI.payloads[i].payload = NULL;
|
||||
+ }
|
||||
|
||||
if (!frame->m_userSEI.payloads[i].payload)
|
||||
frame->m_userSEI.payloads[i].payload = new uint8_t[input.payloadSize];
|
||||
--
|
||||
2.45.0
|
||||
|
@ -1 +0,0 @@
|
||||
SHA512 (x265_3.5.tar.gz) = 230e683239c3e262096ba96246c6f67229a1625d163f86647a411733bb1cf349685858aee3017bce818bb6992448d0abaa9241615a5b620561ce47ecb164f997
|
@ -1,63 +0,0 @@
|
||||
--- x265_3.4/source/CMakeLists.txt.cflags
|
||||
+++ x265_3.4/source/CMakeLists.txt
|
||||
@@ -238,28 +238,6 @@
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
- if(ARM AND CROSS_COMPILE_ARM)
|
||||
- if(ARM64)
|
||||
- set(ARM_ARGS -fPIC)
|
||||
- else()
|
||||
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
|
||||
- endif()
|
||||
- message(STATUS "cross compile arm")
|
||||
- elseif(ARM)
|
||||
- if(ARM64)
|
||||
- set(ARM_ARGS -fPIC)
|
||||
- add_definitions(-DHAVE_NEON)
|
||||
- else()
|
||||
- find_package(Neon)
|
||||
- if(CPU_HAS_NEON)
|
||||
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
|
||||
- add_definitions(-DHAVE_NEON)
|
||||
- else()
|
||||
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
|
||||
- endif()
|
||||
- endif()
|
||||
- endif()
|
||||
- add_definitions(${ARM_ARGS})
|
||||
if(FPROFILE_GENERATE)
|
||||
if(INTEL_CXX)
|
||||
add_definitions(-prof-gen -prof-dir="${CMAKE_CURRENT_BINARY_DIR}")
|
||||
@@ -546,7 +524,7 @@
|
||||
add_custom_command(
|
||||
OUTPUT ${ASM}.${SUFFIX}
|
||||
COMMAND ${CMAKE_CXX_COMPILER}
|
||||
- ARGS ${ARM_ARGS} -c ${ASM_SRC} -o ${ASM}.${SUFFIX}
|
||||
+ ARGS ${CFLAGS} -c ${ASM_SRC} -o ${ASM}.${SUFFIX}
|
||||
DEPENDS ${ASM_SRC})
|
||||
endforeach()
|
||||
elseif(X86)
|
||||
|
||||
--- x265_3.4/source/dynamicHDR10/CMakeLists.txt.cflags
|
||||
+++ x265_3.4/source/dynamicHDR10/CMakeLists.txt
|
||||
@@ -42,18 +42,6 @@
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
- if(ARM AND CROSS_COMPILE_ARM)
|
||||
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC)
|
||||
- elseif(ARM)
|
||||
- find_package(Neon)
|
||||
- if(CPU_HAS_NEON)
|
||||
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
|
||||
- add_definitions(-DHAVE_NEON)
|
||||
- else()
|
||||
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
|
||||
- endif()
|
||||
- endif()
|
||||
- add_definitions(${ARM_ARGS})
|
||||
if(FPROFILE_GENERATE)
|
||||
if(INTEL_CXX)
|
||||
add_definitions(-prof-gen -prof-dir="${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
@ -1,15 +0,0 @@
|
||||
--- x265_v2.6/source/test/testharness.h.orig 2017-12-30 22:27:49.827620181 +0000
|
||||
+++ x265_v2.6/source/test/testharness.h 2017-12-30 22:30:53.239500941 +0000
|
||||
@@ -70,9 +70,10 @@ protected:
|
||||
#include <intrin.h>
|
||||
#elif (!defined(__APPLE__) && (defined (__GNUC__) && (defined(__x86_64__) || defined(__i386__))))
|
||||
#include <x86intrin.h>
|
||||
-#elif ( !defined(__APPLE__) && defined (__GNUC__) && defined(__ARM_NEON__))
|
||||
-#include <arm_neon.h>
|
||||
#elif defined(__GNUC__) && (!defined(__clang__) || __clang_major__ < 4)
|
||||
+#if ( !defined(__APPLE__) && defined(__ARM_NEON__))
|
||||
+#include <arm_neon.h>
|
||||
+#endif
|
||||
/* fallback for older GCC/MinGW */
|
||||
static inline uint32_t __rdtsc(void)
|
||||
{
|
Loading…
Reference in new issue