Merge commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161'
[ffmpeg.git] / libavformat / aviobuf.c
index 5f58ab0..ef6a0d4 100644 (file)
@@ -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;