[FFmpeg-cvslog] avformat/gopher: Add audio and video itemtypes
Christian Lee Seibold
git at videolan.org
Wed Mar 13 00:17:58 EET 2024
ffmpeg | branch: master | Christian Lee Seibold <christian.seibold32 at outlook.com> | Tue Mar 5 00:39:18 2024 -0600| [384cc270d25ef1cc53f9cc0e047033b47cdaddd1] | committer: Marton Balint
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 at outlook.com>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=384cc270d25ef1cc53f9cc0e047033b47cdaddd1
---
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;
More information about the ffmpeg-cvslog
mailing list