mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-08 04:49:37 +00:00
Really makes sure nothing can break
This commit is contained in:
parent
2cf6e8a5fe
commit
3316505d1c
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ class Stream extends EventEmitter {
|
||||||
|
|
||||||
const codecOptions = [`-loglevel ${logLevel}`, '-map 0:a']
|
const codecOptions = [`-loglevel ${logLevel}`, '-map 0:a']
|
||||||
|
|
||||||
if (this.codecsToForceAAC.slice(1, 3).includes(this.tracksCodec)) {
|
if (this.codecsToForceAAC.slice(1, 3).includes(this.tracksCodec) && this.tracks.length > 0 && this.tracks[0].bitRate && this.tracks[0].channels) {
|
||||||
// In case for ac3/eac3 it needs to be passed the bitrate and channels to avoid ffmpeg errors
|
// In case for ac3/eac3 it needs to be passed the bitrate and channels to avoid ffmpeg errors
|
||||||
codecOptions.push(`-c:a ${audioCodec}`, `-b:a ${this.tracks[0].bitRate}`, `-ac ${this.tracks[0].channels}`)
|
codecOptions.push(`-c:a ${audioCodec}`, `-b:a ${this.tracks[0].bitRate}`, `-ac ${this.tracks[0].channels}`)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue