avformat/http: change error message from numeric code to string

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-07-11 09:35:31 +08:00
parent 1498e39439
commit 1b1b974aac

View 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;
}
}