diff --git a/libavformat/segment.c b/libavformat/segment.c index 2557f872e8..e49b93b89b 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -201,6 +201,7 @@ static int segment_end(AVFormatContext *s, int write_trailer) AVFormatContext *oc = seg->avf; int ret = 0; + av_write_frame(oc, NULL); /* Flush any buffered data */ if (write_trailer) ret = av_write_trailer(oc);