]> git.sesse.net Git - ffmpeg/commit
http: Do not try to make a new request when seeking past the end of the file
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 20 Feb 2019 14:52:43 +0000 (09:52 -0500)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 26 Feb 2019 19:48:27 +0000 (14:48 -0500)
commit69fcc093c1241b5ee7711c56c9cd558832a7e491
tree92e6bec3b8f4b3e13a4ddb33a61eac098e8b6f6f
parentf948082e5fc24b00c5b7dbf4493906f1e540a743
http: Do not try to make a new request when seeking past the end of the file

This avoids making invalid HTTP Range requests for a byte range past the
known end of the file during a seek. Those requests generally return a HTTP
response of 416 Range Not Satisfiable, which causes an error response.

Reference: https://tools.ietf.org/html/rfc7233

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/http.c