]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
I forgot commit this
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 May 2010 21:40:49 +0000 (23:40 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 May 2010 21:41:45 +0000 (23:41 +0200)
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);