[FFmpeg-cvslog] Fix url_fopen() flag values.

Michael Niedermayer git at videolan.org
Thu Apr 28 14:33:28 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 28 13:11:37 2011 +0200| [183401b92419febf2c6aeaa2dfecdd16ad99bff8] | committer: Michael Niedermayer

Fix url_fopen() flag values.
Reported by: Luca Abeni
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=183401b92419febf2c6aeaa2dfecdd16ad99bff8
---

 libavformat/aviobuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 9c17e8c..4ebe759 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)
 {



More information about the ffmpeg-cvslog mailing list