Skip to content

Commit 910e2e0

Browse files
committed
more xp
1 parent 6343b0d commit 910e2e0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

cross_compile_ffmpeg.sh

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ build_librtmfp() {
853853
if [[ $compiler_flavors != "native" ]]; then
854854
apply_patch file://$patch_dir/rtmfp.static.cross.patch -p1 # works e48efb4f
855855
apply_patch file://$patch_dir/rtmfp_capitalization.diff -p1 # cross for windows needs it if on linux...
856+
apply_patch file://$patch_dir/librtmfp_xp.diff.diff -p1 # cross for windows needs it if on linux...
856857
else
857858
apply_patch file://$patch_dir/rtfmp.static.make.patch -p1
858859
fi

patches/librtmfp_xp.diff

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/sources/NetGroup.cpp b/sources/NetGroup.cpp
2+
index 45c3fcf..dd9aa86 100644
3+
--- a/sources/NetGroup.cpp
4+
+++ b/sources/NetGroup.cpp
5+
@@ -29,7 +29,7 @@ using namespace Base;
6+
using namespace std;
7+
8+
#if defined(_WIN32)
9+
- #define sscanf sscanf_s
10+
+ #define sscanf sscanf
11+
#endif
12+
#if !defined(_INC_MATH) // On Android gnu_shared library does not include math.h
13+
#define log2(VARIABLE) (log(VARIABLE) / log(2))
14+
@@ -893,4 +893,4 @@ void NetGroup::newGroupPeer(const std::string& peerId, const char* rawId, const
15+
16+
++_countP2P; // new p2p connection
17+
addPeer2HeardList(peerId, rawId, listAddresses, hostAddress);
18+
-}
19+
\ No newline at end of file
20+
+}

0 commit comments

Comments
 (0)