diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-09-27 15:44:54 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-09-30 16:55:45 +0200 |
commit | 8ea35af7620e4f73f9e8c072e1c0fac9a04ec161 (patch) | |
tree | da2d061e034641f00bf07954247dc57a99f50b49 /libavformat/aviobuf.c | |
parent | 75c1db6152c7c90c7ce28c9adb945028e5512c4f (diff) | |
download | ffmpeg-8ea35af7620e4f73f9e8c072e1c0fac9a04ec161.tar.gz |
avio: add a new flag for marking streams seekable by timestamp
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 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; |