[FFmpeg-devel] [PATCH] Add support for 's' type gopher URL

François Revol revol at free.fr
Mon Apr 24 19:19:13 EEST 2017


It's not standard but mentionned on:
http://en.wikipedia.org/wiki/Gopher_%28protocol%29#Gopher_item_types

It's used at least on:
gopher://sdf.org/1/sdf/historical
(commercial.mp3)
---
 libavformat/gopher.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/gopher.c b/libavformat/gopher.c
index 3070b24caf..7d27d6febe 100644
--- a/libavformat/gopher.c
+++ b/libavformat/gopher.c
@@ -46,6 +46,7 @@ static int gopher_connect(URLContext *h, const char *path)
     switch (*++path) {
         case '5':
         case '9':
+        case 's': /* unofficial type for audio */
             path = strchr(path, '/');
             if (!path) return AVERROR(EINVAL);
             break;
-- 
2.11.0



More information about the ffmpeg-devel mailing list