Merge commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace'

* commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace':
  segment: Flush buffered data before finishing a segment

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-05 16:37:41 +02:00
commit f74f8bc864

View File

@ -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);