diff file.c @ 364:0d74e8abcb3d libavformat

avio patch by (Gildas Bazin <gbazin at altern dot org>)
author michael
date Sat, 14 Feb 2004 16:25:32 +0000
parents e47e82c9baf2
children c7a3987b4462
line wrap: on
line diff
--- a/file.c	Wed Feb 11 02:28:34 2004 +0000
+++ b/file.c	Sat Feb 14 16:25:32 2004 +0000
@@ -37,7 +37,9 @@
 
     strstart(filename, "file:", &filename);
 
-    if (flags & URL_WRONLY) {
+    if (flags & URL_RDWR) {
+        access = O_CREAT | O_TRUNC | O_RDWR;
+    } else if (flags & URL_WRONLY) {
         access = O_CREAT | O_TRUNC | O_WRONLY;
     } else {
         access = O_RDONLY;