mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
segment: Flush buffered data before finishing a segment
This makes sure any buffered data is written to the segment, for muxers that buffer up data internally (e.g. fragmented mp4). Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
f7b240434c
commit
a854362b40
@ -111,6 +111,7 @@ static int segment_end(AVFormatContext *oc, int write_trailer)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
av_write_frame(oc, NULL); /* Flush any buffered data */
|
||||
if (write_trailer)
|
||||
av_write_trailer(oc);
|
||||
avio_close(oc->pb);
|
||||
|
Loading…
Reference in New Issue
Block a user