mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 17:24:58 +03:00
chore(server)!: default max bitrate unit to kbps (#15264)
default unit to kbps
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user