[FFmpeg-devel] [PATCH 1/1] avformat/gopher: Add audio and video itemtypes

Christian Lee Seibold christian.seibold32 at outlook.com
Tue Mar 5 08:39:18 EET 2024


The 's', ';', and '<' itemtypes are used for audio and video by
Gophernicus and Gopher+.

Signed-off-by: Christian Lee Seibold <christian.seibold32 at outlook.com>
---
 libavformat/gopher.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/gopher.c b/libavformat/gopher.c
index 9497ffacf2..97ac9028a1 100644
--- a/libavformat/gopher.c
+++ b/libavformat/gopher.c
@@ -49,6 +49,9 @@ static int gopher_connect(URLContext *h, const char *path)
     if (!*path) return AVERROR(EINVAL);
     switch (*++path) {
         case '5':
+        case 's':
+        case '<':
+        case ';':
         case '9':
             path = strchr(path, '/');
             if (!path) return AVERROR(EINVAL);
-- 
2.41.0.windows.2



More information about the ffmpeg-devel mailing list