diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-03-25 11:58:55 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-04 20:39:33 +0200 |
commit | a45605a1ba3126c4d8314886d90326a7ffe746ff (patch) | |
tree | b8c44dfb6aad79b9bc2bb249f3b7a605a74ef642 /libavformat/utils.c | |
parent | fde63146d264f8de86b5cca442eaeed3d59a6681 (diff) | |
download | ffmpeg-a45605a1ba3126c4d8314886d90326a7ffe746ff.tar.gz |
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.c | 2 |
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) |