Skip to content

Commit 9c9d00c

Browse files
committed
Merge pull request SynoCommunity#21 from GuillaumeSmaha/cytec-ffmpeg-update-fix-x265-ppc853x-4.3-gcc-error-2
Fix x265 for ppc853x-4.3: Add a patch only used with a defined var
2 parents 64daefe + 5c12965 commit 9c9d00c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

cross/x265/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ endif
6161
# For ppc853x-4.3, disable atomics
6262
ifeq ($(ARCH)-$(TCVERSION), ppc853x-4.3)
6363
CMAKE+= -DNO_ATOMICS=ON
64+
CMAKE += -DCMAKE_CXX_FLAGS="-DSPKSRC_FIX_PPC853X_4_3"
6465
endif
6566

6667
myConf:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- encoder/sao.h.orig 2016-05-31 10:27:19.096685802 +0200
2+
+++ encoder/sao.h 2016-05-31 10:32:49.833303929 +0200
3+
@@ -69,7 +69,11 @@
4+
typedef int32_t (PerClass[MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS]);
5+
typedef int32_t (PerPlane[NUM_PLANE][MAX_NUM_SAO_TYPE][MAX_NUM_SAO_CLASS]);
6+
7+
+#ifdef SPKSRC_FIX_PPC853X_4_3
8+
+public:
9+
+#else
10+
protected:
11+
+#endif
12+
13+
/* allocated per part */
14+
PerPlane m_count;

0 commit comments

Comments
 (0)