avformat/hlsenc: fix hlsenc bug at windows system
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:57:22 +0000 (07:57 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:57:22 +0000 (07:57 +0800)
commitb97e9cba0b3b926aa3f9940519e93f2ade599af2
tree64b70bf3a82752e10d91912c6d698593d9e3fc57
parentaa7982577c1dee021b72f4256f48d3c030d44e73
avformat/hlsenc: fix hlsenc bug at windows system

when hlsenc use flag second_level_segment_index,
second_level_segment_size and second_level_segment_duration,
the rename is ok but the output filename always use the old filename
so move the rename operation after the close the ts file and
before open new segment

Reported-by: Christian Johannesen <chrisjohannesen@gmail.com>
Reviewed-by: Bodecs Bela <bodecsb@vivanet.hu>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c