Fixed: Display media info bitrates in bits (#11087)

This commit is contained in:
Ghworg 2025-06-01 21:50:53 +10:00 committed by GitHub
parent 1cc2237ac0
commit 7e541d4653
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,8 +7,9 @@ function formatBitrate(input: string | number) {
return '';
}
const { value, symbol } = filesize(size, {
const { value, symbol } = filesize(size / 8, {
base: 10,
bits: true,
round: 1,
output: 'object',
});