mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-30 04:25:03 +02:00
Fix m4b encoder bitrate preset selection #4337
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Run Component Tests / Run Component Tests (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Run Component Tests / Run Component Tests (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
This commit is contained in:
parent
d03c338b48
commit
f05a513767
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
// Find closest bitrate rounding up
|
// Find closest bitrate rounding up
|
||||||
const bitratesToMatch = [32, 64, 128, 192]
|
const bitratesToMatch = [32, 64, 128, 192]
|
||||||
const closestBitrate = bitratesToMatch.find((bitrate) => bitrate >= this.currentBitrate)
|
const closestBitrate = bitratesToMatch.find((bitrate) => bitrate >= this.currentBitrate) || 192
|
||||||
this.selectedBitrate = closestBitrate + 'k'
|
this.selectedBitrate = closestBitrate + 'k'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue