Commit 3ab82e92 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libxvid_rc: Avoid strerror() for thread saftey

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d7de48f0
......@@ -69,7 +69,7 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
if (write(fd, tmp, strlen(tmp)) < 0) {
int ret = AVERROR(errno);
av_log(NULL, AV_LOG_ERROR, "Error %s writing 2pass logfile\n", strerror(errno));
av_log(NULL, AV_LOG_ERROR, "Error %s writing 2pass logfile\n", av_err2str(ret));
av_free(tmp_name);
close(fd);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment