]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/librtmp.c
avidec: Ignore unknown stream types
[ffmpeg] / libavformat / librtmp.c
index 4ada91887f690a8239bba790b1e153168d760a47..acc4503d89f7500310d8816a260e47a938849499 100644 (file)
@@ -94,7 +94,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
         goto fail;
     }
 
-    if (flags & AVIO_WRONLY)
+    if (flags & AVIO_FLAG_WRITE)
         RTMP_EnableWrite(r);
 
     if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0)) {