mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix incorrect bitrate calculation and correct unit of sample rate
This commit is contained in:
parent
1bdfae7682
commit
d94cfa097b
1 changed files with 2 additions and 2 deletions
|
@ -1608,11 +1608,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.BitRate && stream.Codec != "mjpeg") {
|
if (stream.BitRate && stream.Codec != "mjpeg") {
|
||||||
attributes.push(createAttribute(Globalize.translate('MediaInfoBitrate'), (parseInt(stream.BitRate / 1024)) + ' kbps'));
|
attributes.push(createAttribute(Globalize.translate('MediaInfoBitrate'), (parseInt(stream.BitRate / 1000)) + ' kbps'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.SampleRate) {
|
if (stream.SampleRate) {
|
||||||
attributes.push(createAttribute(Globalize.translate('MediaInfoSampleRate'), stream.SampleRate + ' khz'));
|
attributes.push(createAttribute(Globalize.translate('MediaInfoSampleRate'), stream.SampleRate + ' Hz'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.BitDepth) {
|
if (stream.BitDepth) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue