mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix incorrect handling of block align
This commit is contained in:
@@ -118,7 +118,7 @@ elsif ($format eq 'wave' || $format eq 'wave64' || $format eq 'rf64') {
|
||||
print pack('v', $channels);
|
||||
print pack('V', $samplerate);
|
||||
print pack('V', $samplerate * $channels * $bps);
|
||||
print pack('v', $bps); # block align = channels*((bps+7)/8)
|
||||
print pack('v', $channels * $bps); # block align = channels*((bps+7)/8)
|
||||
print pack('v', $bps * 8); # bits per sample = ((bps+7)/8)*8
|
||||
if ($wavx) {
|
||||
print pack('v', 22); # cbSize
|
||||
|
||||
Reference in New Issue
Block a user