aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-05 16:37:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-05 16:41:50 +0200
commitf74f8bc864b26cdbab606edcd6a401b4d1ca2700 (patch)
tree28602dfb65b1f78c19d375c9a9b2471863587bb2
parentb26cbf75bc80a972883c617b884f7616db5cee99 (diff)
parenta854362b40f0e458db5a1fb0d2612a5702ee0ace (diff)
downloadffmpeg-f74f8bc864b26cdbab606edcd6a401b4d1ca2700.tar.gz
Merge commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace'
* commit 'a854362b40f0e458db5a1fb0d2612a5702ee0ace': segment: Flush buffered data before finishing a segment Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/segment.c1
1 files changed, 1 insertions, 0 deletions
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);