summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorHendrik Schreiber <hs@tagtraum.com>2013-07-23 11:25:34 +0200
committerMartin Storsjö <martin@martin.st>2013-07-26 21:46:18 +0300
commitb512360184ade835fba621f5042d643fc9e2ee9d (patch)
treed629a8c4cb78bea56d54997cb2ab600eb6004397 /libavformat/aviobuf.c
parent1297f7b87f8a84930a23eca705765c7c353dfcd5 (diff)
avio: Don't set the seekable flag if no seek function is provided
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index d2eaf36b87..bc89768ef6 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -90,7 +90,7 @@ int ffio_init_context(AVIOContext *s,
s->must_flush = 0;
s->eof_reached = 0;
s->error = 0;
- s->seekable = AVIO_SEEKABLE_NORMAL;
+ s->seekable = seek ? AVIO_SEEKABLE_NORMAL : 0;
s->max_packet_size = 0;
s->update_checksum = NULL;