Skip to content

Commit 450e2b1

Browse files
committed
fix ndk has no bzero function
1 parent 40f2ffd commit 450e2b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

patches/ffmpeg-n6.1/0020-add-built-in-smb2-protocol-via-libsmb2.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From d39c2bfe3f729b3d2e654597c6f97a8ad032f0f1 Mon Sep 17 00:00:00 2001
1+
From a9bacf0ca4d5eb1cb9591d6fc9930ff3077329f7 Mon Sep 17 00:00:00 2001
22
From: qianlongxu <qianlongxu@gmail.com>
3-
Date: Tue, 31 Dec 2024 09:31:32 +0800
3+
Date: Mon, 24 Feb 2025 14:43:36 +0800
44
Subject: [PATCH 20] add built-in smb2 protocol via libsmb2
55

66
---
@@ -62,7 +62,7 @@ index ae952eb..427c45a 100644
6262
OBJS-$(CONFIG_LIBZMQ_PROTOCOL) += libzmq.o
6363
diff --git a/libavformat/libsmb2.c b/libavformat/libsmb2.c
6464
new file mode 100644
65-
index 0000000..2514b2a
65+
index 0000000..0547373
6666
--- /dev/null
6767
+++ b/libavformat/libsmb2.c
6868
@@ -0,0 +1,412 @@
@@ -184,13 +184,13 @@ index 0000000..2514b2a
184184
+
185185
+ if (url->share) {
186186
+ char *share = ff_urldecode(url->share, 0);
187-
+ bzero((char *)url->share,strlen(url->share));
187+
+ memset(url->share, 0, strlen(url->share));
188188
+ memcpy(url->share, share, strlen(share));
189189
+ }
190190
+
191191
+ if (url->path) {
192192
+ char *path = ff_urldecode(url->path, 0);
193-
+ bzero((char *)url->path,strlen(url->path));
193+
+ memset(url->share, 0, strlen(url->share));
194194
+ memcpy(url->path, path, strlen(path));
195195
+ }
196196
+

patches/ffmpeg-n6.1/0023-fix-http-open-and-http_seek-redirect-authentication-.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 29b3f4f302406cc546d87e5e8d26a20417bfcb63 Mon Sep 17 00:00:00 2001
22
From: qianlongxu <qianlongxu@gmail.com>
33
Date: Tue, 12 Nov 2024 16:00:23 +0800
4-
Subject: [PATCH] fix http open and http_seek (redirect) authentication bug
4+
Subject: [PATCH 23] fix http open and http_seek (redirect) authentication bug
55

66
---
77
libavformat/http.c | 25 ++++++++++++++++++++++++-

0 commit comments

Comments
 (0)