From: Michal Sojka Date: Fri, 7 May 2010 21:40:49 +0000 (+0200) Subject: I forgot commit this X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/3905c807cf681cb6fbdff2b258249a0badc24dac I forgot commit this --- 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);