]> git.sesse.net Git - ffmpeg/commitdiff
avformat/http: change error message from numeric code to string
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 11 Jul 2019 01:35:31 +0000 (09:35 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 11 Jul 2019 01:35:31 +0000 (09:35 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/http.c

index 5a937994cfc18141d3dc323a6dd64a695e3ffd7f..579debcd355041c6ad6951c76aa98c38932a6edb 100644 (file)
@@ -1638,7 +1638,7 @@ static int http_shutdown(URLContext *h, int flags)
             read_ret = ffurl_read(s->hd, buf, sizeof(buf));
             s->hd->flags &= ~AVIO_FLAG_NONBLOCK;
             if (read_ret < 0 && read_ret != AVERROR(EAGAIN)) {
-                av_log(h, AV_LOG_ERROR, "URL read error:  %d\n", read_ret);
+                av_log(h, AV_LOG_ERROR, "URL read error: %s\n", av_err2str(read_ret));
                 ret = read_ret;
             }
         }