[FFmpeg-cvslog] avformat/teeproto: Remove always-false check

Andreas Rheinhardt git at videolan.org
Sun Sep 10 22:35:17 EEST 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep  6 18:59:21 2023 +0200| [879178b40d2fd0ef9186d0ed3f693fb380714cba] | committer: Andreas Rheinhardt

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 at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=879178b40d2fd0ef9186d0ed3f693fb380714cba
---

 libavformat/teeproto.c | 4 ----
 1 file changed, 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;



More information about the ffmpeg-cvslog mailing list