]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/file.c
I forgot commit this
[frescor/ffmpeg.git] / libavformat / file.c
index 5cc887d1c125bcfeddc3b5a28dd55dbcfb73a2e9..37de6111b201b9369a21bf7cd527c3c415bc559c 100644 (file)
@@ -51,7 +51,8 @@ static int file_open(URLContext *h, const char *filename, int flags)
 #ifdef O_BINARY
     access |= O_BINARY;
 #endif
-    access |= O_DIRECT;
+    if (flags & URL_DIRECT)
+       access |= O_DIRECT;
     fd = open(filename, access, 0666);
     if (fd < 0)
         return AVERROR(ENOENT);