Message ID | 35e4c75a.10e13.166b0e74420.Coremail.qichaoshen@163.com |
---|---|
State | New |
Headers | show |
diff --git a/libavformat/http.c b/libavformat/http.c index 3a35bc7eac..129f683d15 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1669,7 +1669,7 @@ static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int fo int old_buf_size, ret; AVDictionary *options = NULL; - if (whence == AVSEEK_SIZE) + if (whence == AVSEEK_SIZE || (whence == SEEK_SET && off == s->filesize)) return s->filesize; else if (!force_reconnect && ((whence == SEEK_CUR && off == 0) ||