This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f5ddf1c4a8f8b029694b40d99abb49762fb1c08f Author: Niklas Haas <[email protected]> AuthorDate: Sun Feb 15 18:09:15 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Wed Mar 4 08:49:53 2026 +0000 avformat/http: fix http_connect() offset mismatch error code This (arbitrarily) returns -1, which happens to be AVERROR(EPERM) on my machine. Return the more descriptive AVERORR(EIO) instead. Also add a log message to explain what's going on. --- libavformat/http.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index e40cf3674a..adbf352688 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1687,7 +1687,15 @@ static int http_connect(URLContext *h, const char *path, const char *local_path, if (s->new_location) s->off = off; - err = (off == s->off) ? 0 : -1; + if (off != s->off) { + av_log(h, AV_LOG_ERROR, + "Unexpected offset: expected %"PRIu64", got %"PRIu64"\n", + off, s->off); + err = AVERROR(EIO); + goto done; + } + + err = 0; done: av_freep(&authstr); av_freep(&proxyauthstr); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
