Commit b18c8688 authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: flush packets before update split message

fix ticket: 7831
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 0ad0533e
......@@ -2241,6 +2241,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
new_start_pos = avio_tell(vs->avf->pb);
if (hls->segment_type != SEGMENT_TYPE_FMP4) {
avio_flush(oc->pb);
vs->size = new_start_pos - vs->start_pos;
} else {
vs->size = new_start_pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment