aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-02-15 13:56:15 +0100
committerAnton Khirnov <anton@khirnov.net>2016-02-22 11:30:24 +0100
commite192cd9ce2b51c2e6919f2a78b1ce53e0024e728 (patch)
tree95aefae2aaa5d4de11ba751816d62a04bf671d4d
parentd082078a88da3b3e926197d0d2aa9fa322123b76 (diff)
downloadffmpeg-e192cd9ce2b51c2e6919f2a78b1ce53e0024e728.tar.gz
smoothstreamingenc: do not open the files as read+write
They are only written to, never read.
-rw-r--r--libavformat/smoothstreamingenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index 8e8a64513c..e1b0a63949 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -121,7 +121,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence)
AVDictionary *opts = NULL;
os->tail_out = os->out;
av_dict_set(&opts, "truncate", "0", 0);
- ret = ffurl_open(&os->out, frag->file, AVIO_FLAG_READ_WRITE, &os->ctx->interrupt_callback, &opts);
+ ret = ffurl_open(&os->out, frag->file, AVIO_FLAG_WRITE, &os->ctx->interrupt_callback, &opts);
av_dict_free(&opts);
if (ret < 0) {
os->out = os->tail_out;
@@ -129,7 +129,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence)
return ret;
}
av_dict_set(&opts, "truncate", "0", 0);
- ffurl_open(&os->out2, frag->infofile, AVIO_FLAG_READ_WRITE, &os->ctx->interrupt_callback, &opts);
+ ffurl_open(&os->out2, frag->infofile, AVIO_FLAG_WRITE, &os->ctx->interrupt_callback, &opts);
av_dict_free(&opts);
ffurl_seek(os->out, offset - frag->start_pos, SEEK_SET);
if (os->out2)