[FFmpeg-cvslog] avcodec/libxvid_rc: Avoid strerror() for thread saftey
Michael Niedermayer
git at videolan.org
Sat Dec 13 16:36:40 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 13 15:12:37 2014 +0100| [3ab82e9206fe73c876d9c2e789cdc5ea6688a23d] | committer: Michael Niedermayer
avcodec/libxvid_rc: Avoid strerror() for thread saftey
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ab82e9206fe73c876d9c2e789cdc5ea6688a23d
---
libavcodec/libxvid_rc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index f92bef1..ac154aa 100644
--- a/libavcodec/libxvid_rc.c
+++ b/libavcodec/libxvid_rc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list