Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-03-25 13:58:55 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-04 22:39:33 +0400
commita45605a1ba3126c4d8314886d90326a7ffe746ff (patch)
treeb8c44dfb6aad79b9bc2bb249f3b7a605a74ef642 /libavformat/utils.c
parentfde63146d264f8de86b5cca442eaeed3d59a6681 (diff)
Add AVIO_FLAG_DIRECT.
Allows avoiding the buffer when using avio read, write and seek functions. When using the ffmpeg executable -avioflags direct can be used to enable this mode for input files, but has no effect on output files. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5c5e24ca48..0bf3e2bdd5 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -543,7 +543,7 @@ static int init_input(AVFormatContext *s, const char *filename, AVDictionary **o
(!s->iformat && (s->iformat = av_probe_input_format(&pd, 0))))
return 0;
- if ((ret = avio_open2(&s->pb, filename, AVIO_FLAG_READ,
+ if ((ret = avio_open2(&s->pb, filename, AVIO_FLAG_READ | s->avio_flags,
&s->interrupt_callback, options)) < 0)
return ret;
if (s->iformat)