From 384cc270d25ef1cc53f9cc0e047033b47cdaddd1 Mon Sep 17 00:00:00 2001 From: Christian Lee Seibold Date: Tue, 5 Mar 2024 00:39:18 -0600 Subject: [PATCH] avformat/gopher: Add audio and video itemtypes The 's', ';', and '<' itemtypes are used for audio and video by Gophernicus and Gopher+. Signed-off-by: Christian Lee Seibold Signed-off-by: Marton Balint --- libavformat/gopher.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 9497ffacf2..b022494981 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -48,8 +48,11 @@ static int gopher_connect(URLContext *h, const char *path) if (!*path) return AVERROR(EINVAL); switch (*++path) { + case ';': + case '<': case '5': case '9': + case 's': path = strchr(path, '/'); if (!path) return AVERROR(EINVAL); break;