mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(server)!: default max bitrate unit to kbps (#15264)
default unit to kbps
This commit is contained in:
parent
a39fbcb8ac
commit
fef36e6a37
2 changed files with 17 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ export class BaseConfig implements VideoCodecSWConfig {
|
|||
|
||||
getBitrateUnit() {
|
||||
const maxBitrate = this.getMaxBitrateValue();
|
||||
return this.config.maxBitrate.trim().slice(maxBitrate.toString().length); // use inputted unit if provided
|
||||
return this.config.maxBitrate.trim().slice(maxBitrate.toString().length) || 'k'; // use inputted unit if provided, else default to kbps
|
||||
}
|
||||
|
||||
getMaxBitrateValue() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue