Commit 2e62b2c3 authored by conrad's avatar conrad

Flush the buffer after writing the header and when done with writing the files

Fixes writing small (~4kb) files.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16650 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b03b4246
......@@ -708,6 +708,7 @@ static int mkv_write_header(AVFormatContext *s)
if (mkv->cues == NULL)
return AVERROR(ENOMEM);
put_flush_packet(pb);
return 0;
}
......@@ -888,6 +889,7 @@ static int mkv_write_trailer(AVFormatContext *s)
end_ebml_master(pb, mkv->segment);
av_free(mkv->md5_ctx);
put_flush_packet(pb);
return 0;
}
......
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