diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-06 18:59:21 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-10 21:19:11 +0200 |
commit | 879178b40d2fd0ef9186d0ed3f693fb380714cba (patch) | |
tree | 066f772b1e656be2fd181e28e3f1f0bc67bbf723 /libavformat | |
parent | ee77ee77a1e04eebab066b73d4687ee19c234136 (diff) | |
download | ffmpeg-879178b40d2fd0ef9186d0ed3f693fb380714cba.tar.gz |
avformat/teeproto: Remove always-false check
Incompatibility of the flags and the protocol's capabilities
are checked generically (see url_alloc_for_protocol()).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/teeproto.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/teeproto.c b/libavformat/teeproto.c index 33877ed808..5a74e0f113 100644 --- a/libavformat/teeproto.c +++ b/libavformat/teeproto.c @@ -25,7 +25,6 @@ #include "libavutil/dict.h" #include "libavutil/error.h" #include "libavutil/mem.h" -#include "avio.h" #include "tee_common.h" #include "url.h" @@ -78,9 +77,6 @@ static int tee_open(URLContext *h, const char *filename, int flags) av_strstart(filename, "tee:", &filename); - if (flags & AVIO_FLAG_READ) - return AVERROR(ENOSYS); - while (*filename) { char *child_string = av_get_token(&filename, child_delim); char *child_name = NULL; |