aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-12-22 15:17:15 -0800
committerAman Gupta <aman@tmm1.net>2017-12-22 18:00:47 -0800
commit4c78bbd3136a43347a112dd45ac60685c61bf425 (patch)
tree239d5d9f68d2cb9a1826ebad5ecf3d84a4692770
parent5f4a32a6e343d2683d90843506ecfc98cc7c8ed4 (diff)
downloadffmpeg-4c78bbd3136a43347a112dd45ac60685c61bf425.tar.gz
avformat/internal: log underlying error with ff_rename failure
Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: wm4 <nfxjfg@googlemail.com>
-rw-r--r--libavformat/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 36a57214ce..de4b784634 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -542,7 +542,7 @@ static inline int ff_rename(const char *oldpath, const char *newpath, void *logc
if (rename(oldpath, newpath) == -1) {
ret = AVERROR(errno);
if (logctx)
- av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s\n", oldpath, newpath);
+ av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s: %s\n", oldpath, newpath, av_err2str(ret));
}
return ret;
}