[MPlayer-cvslog] r37818 - trunk/configure

rtogni subversion at mplayerhq.hu
Tue Mar 1 21:25:03 CET 2016


Author: rtogni
Date: Tue Mar  1 21:25:02 2016
New Revision: 37818

Log:
configure: fix in according to FFmpeg change

FFmpeg moved protocol stuffs from libavformat/allformat.c to
libavformat/protocols.c. Search it for a protocol list.

Patch by KO Myung-Hun [komh78 gmail]

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sun Feb 28 15:40:29 2016	(r37817)
+++ trunk/configure	Tue Mar  1 21:25:02 2016	(r37818)
@@ -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"


More information about the MPlayer-cvslog mailing list