summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-09-27 15:44:54 +0200
committerAnton Khirnov <anton@khirnov.net>2016-09-30 16:55:45 +0200
commit8ea35af7620e4f73f9e8c072e1c0fac9a04ec161 (patch)
treeda2d061e034641f00bf07954247dc57a99f50b49 /libavformat/aviobuf.c
parent75c1db6152c7c90c7ce28c9adb945028e5512c4f (diff)
avio: add a new flag for marking streams seekable by timestamp
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 39a11e21c4..5cb733d3d8 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -846,6 +846,9 @@ int ffio_fdopen(AVIOContext **s, URLContext *h)
if(h->prot) {
(*s)->read_pause = io_read_pause;
(*s)->read_seek = io_read_seek;
+
+ if (h->prot->url_read_seek)
+ (*s)->seekable |= AVIO_SEEKABLE_TIME;
}
(*s)->av_class = &ff_avio_class;
return 0;