]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tcp.c
matroskadec: remove useless initialization
[ffmpeg] / libavformat / tcp.c
index 1b9b4f8458463cbe20e8bd64bae489430584e4f3..6c25e72b6f1d52215cc45654150a497c2e19b35c 100644 (file)
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 #include <sys/time.h>
 
 typedef struct TCPContext {
@@ -49,6 +50,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
     if (!s)
         return AVERROR(ENOMEM);
     h->priv_data = s;
+    h->is_streamed = 1;
 
     if (port <= 0 || port >= 65536)
         goto fail;