mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-01 08:21:02 +00:00
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>
This commit is contained in:
parent
ee77ee77a1
commit
879178b40d
@ -25,7 +25,6 @@
|
|||||||
#include "libavutil/dict.h"
|
#include "libavutil/dict.h"
|
||||||
#include "libavutil/error.h"
|
#include "libavutil/error.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
#include "avio.h"
|
|
||||||
#include "tee_common.h"
|
#include "tee_common.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
|
|
||||||
@ -78,9 +77,6 @@ static int tee_open(URLContext *h, const char *filename, int flags)
|
|||||||
|
|
||||||
av_strstart(filename, "tee:", &filename);
|
av_strstart(filename, "tee:", &filename);
|
||||||
|
|
||||||
if (flags & AVIO_FLAG_READ)
|
|
||||||
return AVERROR(ENOSYS);
|
|
||||||
|
|
||||||
while (*filename) {
|
while (*filename) {
|
||||||
char *child_string = av_get_token(&filename, child_delim);
|
char *child_string = av_get_token(&filename, child_delim);
|
||||||
char *child_name = NULL;
|
char *child_name = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user