]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: write temp file for append single file by encryption mode
authorSteven Liu <lq@chinaffmpeg.org>
Wed, 22 Jul 2020 09:15:29 +0000 (17:15 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 10 Aug 2020 07:52:59 +0000 (15:52 +0800)
commit40597add98a7378402b4a653fd3057426074def9
treee123ac230e4c2ec74879e33322f6a488068e63e5
parent6e4bba40557613282a10dadb5a0a9c5f5f500987
avformat/hlsenc: write temp file for append single file by encryption mode

fix ticket: 8783
Because in single file by encryption mode, it cannot get the last one
block of the file, it need ff_format_io_close for get full file size,
then hlsenc can get the total size of the encryption content,
so write the content into temp file first, and get the temp file content
append the temp file content into append to single file, then hlsenc can
get the correct file/content size and offset.

Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
libavformat/hlsenc.c