Another Flake optimization

This commit is contained in:
Grigory Chudov
2013-03-26 19:50:44 -04:00
parent 55af6e181a
commit 76111a5c6e
4 changed files with 55 additions and 13 deletions

View File

@@ -1060,8 +1060,8 @@ namespace CUETools.Codecs.FLACCL
void output_frame_footer(FlacFrame frame)
{
frame.writer.flush();
ushort crc = Crc16.ComputeChecksum(0, frame.writer.Buffer, frame.writer_offset, frame.writer.Length - frame.writer_offset);
frame.writer.writebits(16, crc);
ushort crc = frame.writer.get_crc16();
frame.writer.writebits(16, crc);
frame.writer.flush();
}