From 3905c807cf681cb6fbdff2b258249a0badc24dac Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 7 May 2010 23:40:49 +0200 Subject: [PATCH] I forgot commit this --- libavformat/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/file.c b/libavformat/file.c index 5cc887d1c..37de6111b 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -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); -- 2.39.2