stream_encoder.c : Give the encoder a larger stdio buffer.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 23 Sep 2014 20:35:14 +0000 (06:35 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 23 Sep 2014 20:35:17 +0000 (06:35 +1000)
commit6a6207b52a86b1d7980a5233e297c0fc948bed7d
treebde1e79b06fa96f607de03775a5f716bb8c61d08
parent142cc51cc71fb8f47a5f1cda9c0feae6d2226c3f
stream_encoder.c : Give the encoder a larger stdio buffer.

Windows in particular can experience slow encoding speeds on highly
fragmented disks. Using setvbuf to increase the size of the buffer to
10Meg.

This is probably not needed on Linux/Unix, but is very unlikely to
to cause any negative effects.

Patch-from: Janne Hyv√§rinen <cse@sci.fi>
src/libFLAC/stream_encoder.c