1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00
Files
ffmpeg/doc
Andreas Menze faab9c8e56 avformat/http: keep complete size for Content-Range "bytes A-B/*"
"bytes A-B/*" means the complete length is unknown (RFC 9110 14.4), so
don't read it as a size of 0, and never derive the complete size from a
partial reply. Remember it once learned from a 200 Content-Length or a
"bytes A-B/N" total and reuse it for later "*" replies. If the complete
size was never learned, or the total is not a number, it stays unknown.
A 416 to a read or a seek past the end of a resource of unknown size
ends it with EOF and gives its complete length ("bytes */N"), unless it
states a length past the requested offset. That 416 is retried first
only if reconnect_on_http_error lists 416 by number, reconnect_at_eof
does not retry the end it marks, and an open past the end is retried as
configured. Keep the file size and the complete size when a request
fails. A seek that fails or is refused keeps the offset and the end of
the resource, and when reading goes on over the old connection, also
the range end, chunk state, connection mode and compression of the old
reply. A seek to the current offset makes a new request when there is
no connection.

Fixes #24210

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
2026-10-12 22:42:25 +02:00
..
…
2023-03-01 21:59:10 +01:00
2026-09-10 18:23:50 +00:00
2026-03-20 22:01:43 +01:00
2026-01-18 03:33:04 +00:00
…
2026-05-22 08:20:13 -05:00
…
2024-03-18 17:59:19 +01:00
…
2026-07-13 18:57:37 +09:00
…
…
2026-09-12 23:52:20 +00:00
2025-08-03 13:48:47 +02:00
2021-06-18 18:58:25 +02:00