[FFmpeg-devel] [PATCH] avformat/utils.c fix mkdir always true
darling.zhong
dalingzhong at yeah.net
Fri Nov 8 05:41:05 EET 2019
Signed-off-by: darling.zhong <dalingzhong at yeah.net>
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100644 => 100755 libavformat/utils.c
diff --git a/libavformat/utils.c b/libavformat/utils.c
old mode 100644
new mode 100755
index 8196442dd1..0917cc81df
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4869,7 +4869,7 @@ int ff_mkdir_p(const char *path)
}
}
- if ((*(pos - 1) != '/') || (*(pos - 1) != '\\')) {
+ if ((*(pos - 1) != '/') && (*(pos - 1) != '\\')) {
ret = mkdir(temp, 0755);
}
--
2.17.1
More information about the ffmpeg-devel
mailing list