avformat/utils: fix logic error in ff_mkdir_p

Fix ticket# 9605

Signed-off-by: Peter Ross <pross@xvid.org>
This commit is contained in:
Peter Ross 2022-01-25 18:28:32 +11:00
parent 2db9ffb88b
commit 6474300dc4

View File

@ -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);
}