This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit bf77674b3e8cca91ea3dd99d8022bcc6cea51856
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Jun 25 11:04:12 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Jun 28 12:48:23 2026 +0200

    avformat/http: use explicit AVERROR_ names for fixed error codes
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavformat/http.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index d5e3c2e181..9deb96699f 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1213,14 +1213,14 @@ static int process_line(URLContext *h, char *line, int 
line_count, int *parsed_h
             while (*p && !av_isspace(*p))
                 p++;
             if (!av_isspace(*p))
-                return ff_http_averror(400, AVERROR(EIO));
+                return AVERROR_HTTP_BAD_REQUEST;
             *(p++) = '\0';
             av_log(h, AV_LOG_TRACE, "Received method: %s\n", method);
             if (s->method) {
                 if (av_strcasecmp(s->method, method)) {
                     av_log(h, AV_LOG_ERROR, "Received and expected HTTP method 
do not match. (%s expected, %s received)\n",
                            s->method, method);
-                    return ff_http_averror(400, AVERROR(EIO));
+                    return AVERROR_HTTP_BAD_REQUEST;
                 }
             } else {
                 // use autodetected HTTP method to expect
@@ -1228,7 +1228,7 @@ static int process_line(URLContext *h, char *line, int 
line_count, int *parsed_h
                 if (av_strcasecmp(auto_method, method)) {
                     av_log(h, AV_LOG_ERROR, "Received and autodetected HTTP 
method did not match "
                            "(%s autodetected %s received)\n", auto_method, 
method);
-                    return ff_http_averror(400, AVERROR(EIO));
+                    return AVERROR_HTTP_BAD_REQUEST;
                 }
                 if (!(s->method = av_strdup(method)))
                     return AVERROR(ENOMEM);
@@ -1241,7 +1241,7 @@ static int process_line(URLContext *h, char *line, int 
line_count, int *parsed_h
             while (*p && !av_isspace(*p))
                 p++;
             if (!av_isspace(*p))
-                return ff_http_averror(400, AVERROR(EIO));
+                return AVERROR_HTTP_BAD_REQUEST;
             *(p++) = '\0';
             av_log(h, AV_LOG_TRACE, "Requested resource: %s\n", resource);
             if (!(s->resource = av_strdup(resource)))
@@ -1256,7 +1256,7 @@ static int process_line(URLContext *h, char *line, int 
line_count, int *parsed_h
             *p = '\0';
             if (av_strncasecmp(version, "HTTP/", 5)) {
                 av_log(h, AV_LOG_ERROR, "Malformed HTTP version string.\n");
-                return ff_http_averror(400, AVERROR(EIO));
+                return AVERROR_HTTP_BAD_REQUEST;
             }
             av_log(h, AV_LOG_TRACE, "HTTP version string: %s\n", version);
         } else {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to