Ignore quality options if can't find matching bitrate

This commit is contained in:
Preston 2022-02-25 17:51:02 -05:00
parent f88ae78e0a
commit 1c647504c9
1 changed files with 5 additions and 1 deletions

View File

@ -996,7 +996,7 @@ export default Vue.extend({
if (this.maxFramerate === 60 && quality.height >= 480) {
for (let i = 0; i < this.adaptiveFormats.length; i++) {
if (this.adaptiveFormats[i].bitrate === quality.bitrate) {
fps = this.adaptiveFormats[i].fps
fps = this.adaptiveFormats[i].fps ? this.adaptiveFormats[i].fps : 30
break
}
}
@ -1193,6 +1193,10 @@ export default Vue.extend({
return format.bitrate === quality.bitrate
})
if (typeof adaptiveFormat === 'undefined') {
return
}
this.activeAdaptiveFormats.push(adaptiveFormat)
fps = adaptiveFormat.fps ? adaptiveFormat.fps : 30