Commit f74f8bc8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a854362b'

* commit 'a854362b':
  segment: Flush buffered data before finishing a segment
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b26cbf75 a854362b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment