diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index d9a52871a..8c6aba4ff 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -1179,7 +1179,7 @@ static int twosf_info(void * context, const char * name, const char * value) int samples_read = [self readAudioInternal:buf frames:(UInt32)samples_to_write / 2] * 2; if ( !samples_read ) break; silence_test_buffer.samples_written( samples_read ); - free_space -= samples_read; + free_space -= samples_read / 2; } return !silence_test_buffer.test_silence(); }