hls muxer writes a corrupted init filename when segmenting to fmp4 unless absolute path provided
|Reported by:||pickles||Owned by:||Steven Liu|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
As discussed in comments 3-5 in #6776, the hls muxer creates an init file with a corrupted filename when segmenting to fmp4 unless
hls_fmp4_init_filename is set with an absolute filename.
How to reproduce:
ffmpeg -f lavfi -i testsrc -hls_segment_filename '%d.m4s' -hls_segment_type fmp4 -hls_fmp4_init_filename init.mp4 -f hls -t 30 fmp4.m3u8
This should create a file
init.mp4 in the current directory, but, as no absolute path is given, it writes a corrupted filename to the current directory instead.