[FFmpeg-devel] avformat/hlsenc: remove the use_localtime_mkdir check logic

Submitted by Steven Liu on Nov. 1, 2018, 2:42 p.m.

Details

Message ID 20181101144245.30541-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Nov. 1, 2018, 2:42 p.m.
fix ticket: 7527
the use_localtime_mkdir check logic looks should be needn't.

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

Patch hide | download patch | download mbox

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 {