[FFmpeg-cvslog] r16650 - trunk/libavformat/matroskaenc.c
conrad
subversion
Sat Jan 17 05:30:37 CET 2009
Author: conrad
Date: Sat Jan 17 05:30:36 2009
New Revision: 16650
Log:
Flush the buffer after writing the header and when done with writing the files
Fixes writing small (~4kb) files.
Modified:
trunk/libavformat/matroskaenc.c
Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c Sat Jan 17 02:17:04 2009 (r16649)
+++ trunk/libavformat/matroskaenc.c Sat Jan 17 05:30:36 2009 (r16650)
@@ -708,6 +708,7 @@ static int mkv_write_header(AVFormatCont
if (mkv->cues == NULL)
return AVERROR(ENOMEM);
+ put_flush_packet(pb);
return 0;
}
@@ -888,6 +889,7 @@ static int mkv_write_trailer(AVFormatCon
end_ebml_master(pb, mkv->segment);
av_free(mkv->md5_ctx);
+ put_flush_packet(pb);
return 0;
}
More information about the ffmpeg-cvslog
mailing list