Fix m4b encoder bitrate preset selection #4337

This commit is contained in:
advplyr 2025-05-25 16:12:35 -05:00
parent d03c338b48
commit f05a513767

View File

@ -162,7 +162,7 @@ export default {
} else {
// Find closest bitrate rounding up
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'
}