avformat/hlsenc: support mkdir_p for use_localtime_mkdir
authorSteven Liu <lingjiujianke@gmail.com>
Wed, 28 Sep 2016 08:09:05 +0000 (16:09 +0800)
committerSteven Liu <lingjiujianke@gmail.com>
Fri, 30 Sep 2016 21:37:19 +0000 (05:37 +0800)
commit0d2dd5d96d0dc8218192820dd4a34d5f7770148a
tree79544cc29b959df2cfc63dac7d1ecb6d290e0401
parent1a9b4bc4c7b6064761cf02662d18f833e16dff26
avformat/hlsenc: support mkdir_p for use_localtime_mkdir

when use use_localtime_mkdir to create multi level dir,
ffmpeg give error message:
ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -c copy -use_localtime 1
 -use_localtime_mkdir 1 -hls_segment_filename '%Y%m%d/file-%Y%m%d/%s.ts'
out.m3u8
error message:
Could not create directory 20160926/file-20160926 with use_localtime_mkdir
add mkdir_p for support the multi level dir

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Tested-by: Zuo Genyu <1515161258@qq.com> (Windows)
Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
libavformat/hlsenc.c