diff options
author | James Almer | 2017-03-21 17:07:44 -0300 |
---|---|---|
committer | James Almer | 2017-03-21 17:07:44 -0300 |
commit | fc9f14c7de5bff05bab6f7b258ca70b777ce04ed (patch) | |
tree | ba41f1c576849fd54e61ea064d886a134a5914cf /libavformat/aviobuf.c | |
parent | de36e98a16f495d051e301653115ebf99a7d7929 (diff) | |
parent | 8ea35af7620e4f73f9e8c072e1c0fac9a04ec161 (diff) |
Merge commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161'
* commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161':
avio: add a new flag for marking streams seekable by timestamp
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 5f58ab064b..ef6a0d4e9b 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -934,6 +934,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)->short_seek_get = io_short_seek; (*s)->av_class = &ff_avio_class; |