You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/hlsenc: flush packets before update split message
fix ticket: 7831 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
@@ -2241,6 +2241,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
new_start_pos = avio_tell(vs->avf->pb);
|
new_start_pos = avio_tell(vs->avf->pb);
|
||||||
if (hls->segment_type != SEGMENT_TYPE_FMP4) {
|
if (hls->segment_type != SEGMENT_TYPE_FMP4) {
|
||||||
|
avio_flush(oc->pb);
|
||||||
vs->size = new_start_pos - vs->start_pos;
|
vs->size = new_start_pos - vs->start_pos;
|
||||||
} else {
|
} else {
|
||||||
vs->size = new_start_pos;
|
vs->size = new_start_pos;
|
||||||
|
Reference in New Issue
Block a user