diff options
author | Christian Lee Seibold <christian.seibold32@outlook.com> | 2024-03-05 00:39:18 -0600 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-03-12 23:01:46 +0100 |
commit | 384cc270d25ef1cc53f9cc0e047033b47cdaddd1 (patch) | |
tree | 60dafb0f0f283e7d78938325597b2c5bd867bf22 | |
parent | 275add93287fb9f5a9e89c097df0fc6c5c0ca9f4 (diff) |
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 <christian.seibold32@outlook.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/gopher.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |