mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
avio patch by (Gildas Bazin <gbazin at altern dot org>)
Originally committed as revision 2783 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Michael Niedermayer

parent
d4c3c5a6f6
commit
ac9fe33d0e
@ -37,7 +37,9 @@ static int file_open(URLContext *h, const char *filename, int flags)
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user