[FFmpeg-cvslog] avformat/hlsenc: flush packets before update split message
Steven Liu
git at videolan.org
Sun Apr 14 16:20:46 EEST 2019
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Sun Apr 14 18:45:23 2019 +0800| [b18c8688dd4f097776572d4f78f12f19881c8057] | committer: Steven Liu
avformat/hlsenc: flush packets before update split message
fix ticket: 7831
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b18c8688dd4f097776572d4f78f12f19881c8057
---
libavformat/hlsenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 5f9a200c6e..6b913be31c 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;
More information about the ffmpeg-cvslog
mailing list