aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-07-11 09:35:31 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-07-11 09:35:31 +0800
commit1b1b974aace71740fa21bcc0537b1f9d694df7b1 (patch)
tree1e419b57469049e2893f9d9ed1f6562c26f904e1
parent1498e39439202b7b28f516771a59bca90be7150f (diff)
downloadffmpeg-1b1b974aace71740fa21bcc0537b1f9d694df7b1.tar.gz
avformat/http: change error message from numeric code to string
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 5a937994cf..579debcd35 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -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;
}
}