summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2022-01-25 18:28:32 +1100
committerPeter Ross <pross@xvid.org>2022-02-16 08:21:58 +1100
commit6474300dc4212486eff82470061118cef720b420 (patch)
tree520d733a4458345d9ca7fca2567f439e60aa19f3 /libavformat
parent2db9ffb88b5faf9cb0f877c29c7701960e2fcf07 (diff)
avformat/utils: fix logic error in ff_mkdir_p
Fix ticket# 9605 Signed-off-by: Peter Ross <pross@xvid.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cee86ae87b..ca61a97759 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1136,7 +1136,7 @@ int ff_mkdir_p(const char *path)
}
}
- if ((*(pos - 1) != '/') || (*(pos - 1) != '\\')) {
+ if ((*(pos - 1) != '/') && (*(pos - 1) != '\\')) {
ret = mkdir(temp, 0755);
}