diff options
author | Hendrik Schreiber <hs@tagtraum.com> | 2013-07-23 13:25:34 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-23 19:19:32 +0400 |
commit | 650355089cc4b38a57c88203c81f4896a98a5a7e (patch) | |
tree | 598fa30e5b9ef024a4401dbaec8182ba43d03cec /libavformat/aviobuf.c | |
parent | 7dc77613f6539a9f95dfd2587d9998a9595b55b5 (diff) |
avformat/aviobuf/ffio_init_context: set seekable automatically
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 93a187b4aa..6efc0cfae0 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -92,7 +92,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; |