Fixes #6752.
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 418f153c6f..eba3aef567 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -207,7 +207,7 @@ static int mkdir_p(const char *path) {
}
}
- if ((*(pos - 1) != '/') || (*(pos - 1) != '\\')) {
+ if ((*(pos - 1) != '/') && (*(pos - 1) != '\\')) {
ret = mkdir(temp, 0755);
}
--
2.11.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel