Skip to content

Commit c46ad13

Browse files
committed
custom bluray2 protocol instead of bluray
1 parent 17a1fe9 commit c46ad13

File tree

3 files changed

+71
-9
lines changed

3 files changed

+71
-9
lines changed

do-compile/ffmpeg.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,16 @@ fi
178178

179179
echo "----------------------"
180180

181-
pkg-config --libs libbluray --silence-errors >/dev/null && enable_bluray=1
182-
183-
if [[ $enable_bluray ]];then
184-
echo "[✅] --enable-libbluray"
185-
CFG_FLAGS="$CFG_FLAGS --enable-libbluray --enable-protocol=bluray"
186-
else
187-
echo "[❌] --disable-libbluray"
188-
fi
189-
181+
# pkg-config --libs libbluray --silence-errors >/dev/null && enable_bluray=1
182+
183+
# if [[ $enable_bluray ]];then
184+
# echo "[✅] --enable-libbluray"
185+
# CFG_FLAGS="$CFG_FLAGS --enable-libbluray --enable-protocol=bluray"
186+
# else
187+
# echo "[❌] --disable-libbluray"
188+
# fi
189+
CFG_FLAGS="$CFG_FLAGS --disable-libbluray"
190+
echo "[❌] --disable-libbluray"
190191
echo "----------------------"
191192

192193
pkg-config --libs dvdread --silence-errors >/dev/null && enable_dvdread=1
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 83ee53a2f7f4f3c92ca8d0a18ea2d5e94fb69bc1 Mon Sep 17 00:00:00 2001
2+
From: qianlongxu <qianlongxu@gmail.com>
3+
Date: Thu, 19 Sep 2024 17:41:32 +0800
4+
Subject: [PATCH 20] add dummy ijkbluray2 protocol
5+
6+
---
7+
libavformat/ijkutils.c | 1 +
8+
libavformat/protocols.c | 1 +
9+
2 files changed, 2 insertions(+)
10+
11+
diff --git a/libavformat/ijkutils.c b/libavformat/ijkutils.c
12+
index 25faad1..12f2da7 100644
13+
--- a/libavformat/ijkutils.c
14+
+++ b/libavformat/ijkutils.c
15+
@@ -65,6 +65,7 @@ IJK_DUMMY_PROTOCOL(ijkhttphook);
16+
IJK_DUMMY_PROTOCOL(ijksegment);
17+
IJK_DUMMY_PROTOCOL(ijktcphook);
18+
IJK_DUMMY_PROTOCOL(ijkio);
19+
+IJK_DUMMY_PROTOCOL(ijkbluray2);
20+
21+
#define IJK_FF_DEMUXER(x) \
22+
extern AVInputFormat ff_##x##_demuxer; \
23+
diff --git a/libavformat/protocols.c b/libavformat/protocols.c
24+
index 73df344..8819ecb 100644
25+
--- a/libavformat/protocols.c
26+
+++ b/libavformat/protocols.c
27+
@@ -83,6 +83,7 @@ extern const URLProtocol ff_ijkmediadatasource_protocol;
28+
extern const URLProtocol ff_ijksegment_protocol;
29+
extern const URLProtocol ff_ijktcphook_protocol;
30+
extern const URLProtocol ff_ijkio_protocol;
31+
+extern const URLProtocol ff_ijkbluray2_protocol;
32+
33+
extern const URLProtocol ff_dvd_protocol;
34+
35+
--
36+
2.39.3 (Apple Git-146)
37+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 3c8e53d1b4aa99379a3c10d78151e8531f8ed703 Mon Sep 17 00:00:00 2001
2+
From: qianlongxu <qianlongxu@gmail.com>
3+
Date: Thu, 19 Sep 2024 17:43:38 +0800
4+
Subject: [PATCH 21] the urldecode.h header file to be public.
5+
6+
---
7+
libavformat/Makefile | 1 +
8+
1 file changed, 1 insertion(+)
9+
10+
diff --git a/libavformat/Makefile b/libavformat/Makefile
11+
index dfcec9f..271c0f4 100644
12+
--- a/libavformat/Makefile
13+
+++ b/libavformat/Makefile
14+
@@ -13,6 +13,7 @@ HEADERS = avformat.h \
15+
id3v2.h \
16+
os_support.h \
17+
metadata.h \
18+
+ urldecode.h \
19+
20+
OBJS = allformats.o \
21+
avformat.o \
22+
--
23+
2.39.3 (Apple Git-146)
24+

0 commit comments

Comments
 (0)