You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libxvid_rc: Avoid strerror() for thread saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -69,7 +69,7 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
|
|||||||
|
|
||||||
if (write(fd, tmp, strlen(tmp)) < 0) {
|
if (write(fd, tmp, strlen(tmp)) < 0) {
|
||||||
int ret = AVERROR(errno);
|
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);
|
av_free(tmp_name);
|
||||||
close(fd);
|
close(fd);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user