diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-04-14 18:45:23 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-04-14 18:45:23 +0800 |
commit | b18c8688dd4f097776572d4f78f12f19881c8057 (patch) | |
tree | 599e0b03302c4daa379b53b683641082ae26c093 /libavformat/hlsenc.c | |
parent | 0ad0533e914a2618aea1dc77748037bd8459f61d (diff) | |
download | ffmpeg-streaming-b18c8688dd4f097776572d4f78f12f19881c8057.zip ffmpeg-streaming-b18c8688dd4f097776572d4f78f12f19881c8057.tar.gz |
avformat/hlsenc: flush packets before update split message
fix ticket: 7831
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 5f9a200..6b913be 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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; |