fix ticket: 7527
the use_localtime_mkdir check logic looks should be needn't.

Signed-off-by: Steven Liu <l...@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f8f060d065..f4b3eb2aad 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -442,7 +442,7 @@ static int hls_delete_old_segments(AVFormatContext *s, 
HLSContext *hls,
         }
     }
 
-    if (segment && !hls->use_localtime_mkdir) {
+    if (segment) {
         if (hls->segment_filename) {
             dirname = av_strdup(hls->segment_filename);
         } else {
-- 
2.15.1



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to