From 183401b92419febf2c6aeaa2dfecdd16ad99bff8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 28 Apr 2011 13:11:37 +0200 Subject: [PATCH] Fix url_fopen() flag values. Reported by: Luca Abeni Signed-off-by: Michael Niedermayer --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 9c17e8c6e6..4ebe759468 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -374,7 +374,7 @@ void put_nbyte(AVIOContext *s, int b, int count) int url_fopen(AVIOContext **s, const char *filename, int flags) { - return avio_open(s, filename, flags); + return avio_open(s, filename, flags+1); } int url_fclose(AVIOContext *s) {