[MPlayer-dev-eng] [PATCH] configure: fix in according to FFmpeg change
KO Myung-Hun
komh78 at gmail.com
Tue Mar 1 09:32:01 CET 2016
FFmpeg moved protocol stuffs from libavformat/allformat.c to
libavformat/protocols.c. Search it for a protocol list.
---
configure | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 159168f..a11a8f7 100755
--- a/configure
+++ b/configure
@@ -1543,6 +1543,13 @@ list_subparts() {
return 0
}
+list_subparts_extern() {
+ test ! -e ffmpeg/libav${3} && return 1
+ pattern="s/^[^#]*extern.*${1} *ff_\([^ ]*\)_${2};/\1_${2}/p"
+ sed -n "$pattern" ffmpeg/libav${3} | toupper
+ return 0
+}
+
echocheck "ffmpeg/libavcodec/allcodecs.c"
libavdecoders_all=$(list_subparts DEC decoder codec/allcodecs.c)
libavencoders_all=$(list_subparts ENC encoder codec/allcodecs.c)
@@ -1555,10 +1562,14 @@ echores "$_list_subparts"
echocheck "ffmpeg/libavformat/allformats.c"
libavdemuxers_all=$(list_subparts DEMUX demuxer format/allformats.c)
libavmuxers_all=$(list_subparts _MUX muxer format/allformats.c)
-libavprotocols_all=$(list_subparts PROTOCOL protocol format/allformats.c)
test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
echores "$_list_subparts"
+echocheck "ffmpeg/libavformat/protocols.c"
+libavprotocols_all=$(list_subparts_extern URLProtocol protocol format/protocols.c)
+test $? -eq 0 && _list_subparts_extern=found || _list_subparts_extern="not found"
+echores "$_list_subparts_extern"
+
echocheck "ffmpeg/libavfilter/allfilters.c"
libavfilters_all=$(list_subparts FILTER filter filter/allfilters.c)
test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
--
2.7.0
More information about the MPlayer-dev-eng
mailing list