CUETools.Converter: stdin/stdout support

This commit is contained in:
Grigory Chudov
2013-04-18 23:20:18 -04:00
parent 1674a977d6
commit 3cdd8a5ef9
2 changed files with 28 additions and 17 deletions

View File

@@ -143,7 +143,7 @@ namespace CUETools.Codecs
public void Close()
{
if (_finalSampleCount <= 0)
if (_finalSampleCount <= 0 && _IO.CanSeek)
{
long dataLen = _sampleLen * Settings.PCM.BlockAlign;
long dataLenPadded = dataLen + (dataLen & 1);