Mercurial > libavformat.hg
changeset 4239:5d0ac4d87ba1 libavformat
Flush the buffer after writing the header and when done with writing the files
Fixes writing small (~4kb) files.
author | conrad |
---|---|
date | Sat, 17 Jan 2009 04:30:36 +0000 |
parents | 9efd09781ed3 |
children | dff232a64d7c |
files | matroskaenc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Fri Jan 16 19:05:09 2009 +0000 +++ b/matroskaenc.c Sat Jan 17 04:30:36 2009 +0000 @@ -708,6 +708,7 @@ if (mkv->cues == NULL) return AVERROR(ENOMEM); + put_flush_packet(pb); return 0; } @@ -888,6 +889,7 @@ end_ebml_master(pb, mkv->segment); av_free(mkv->md5_ctx); + put_flush_packet(pb); return 0; }