Message ID | 20181029094251.45226-1-qichaoshen@163.com |
---|---|
State | New |
Headers | show |
2018-10-29 10:42 GMT+01:00, shenqichao <qichaoshen@163.com>:
> Signed-off-by: shenqichao <qichaoshen@163.com>
The first line of the commit message should not be too long
(<80 chars?), then there should be an empty line, then more
info if useful (like the ticket number).
Your commit message is only one line, but too long.
Carl Eugen
diff --git a/libavformat/http.c b/libavformat/http.c index 3a35bc7eac..9401a5c63e 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 || (h->is_streamed == 0 && whence == SEEK_SET && off == s->filesize)) return s->filesize; else if (!force_reconnect && ((whence == SEEK_CUR && off == 0) ||
Signed-off-by: shenqichao <qichaoshen@163.com> --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)