[FFmpeg-devel] [PATCH 6/7] hlsenc: Fix creation of final directory in path

Mark Thompson sw at jkqxz.net
Wed Oct 18 01:11:58 EEST 2017


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



More information about the ffmpeg-devel mailing list