This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 17afe2331ac3bcabbf0fe9c377e2c04ffab08642 Author: Kacper Michajłow <[email protected]> AuthorDate: Fri Oct 2 03:56:00 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Mon Oct 12 22:42:24 2026 +0200 avformat/http: drop the old reply when seeking past the end Close the connection and empty the buffer when a seek past the end is answered without a request, so that neither the buffered bytes nor the connection of the old reply are used at the new offset. Signed-off-by: Kacper Michajłow <[email protected]> --- libavformat/http.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 8ab144079c..e27e80f484 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -2226,8 +2226,12 @@ static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int fo /* do not try to make a new connection if seeking past the end of the file */ if (s->end_off || s->filesize != UINT64_MAX) { uint64_t end_pos = s->end_off ? s->end_off : s->filesize; - if (s->off >= end_pos) + if (s->off >= end_pos) { + /* nothing of the old reply belongs to this offset */ + ffurl_closep(&s->hd); + s->buf_ptr = s->buf_end = s->buffer; return s->off; + } } /* if the location changed (redirect), revert to the original uri */ -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
