mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01:00
api/youtube: add missing else to adaptive codec fallback
This commit is contained in:
parent
225a721805
commit
3fe2bd3b7c
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ export default async function(o) {
|
||||||
|
|
||||||
if (noBestMedia()) {
|
if (noBestMedia()) {
|
||||||
if (codec === "av1") codec = "vp9";
|
if (codec === "av1") codec = "vp9";
|
||||||
if (codec === "vp9") codec = "av1";
|
else if (codec === "vp9") codec = "av1";
|
||||||
|
|
||||||
// if there's no higher quality fallback, then use h264
|
// if there's no higher quality fallback, then use h264
|
||||||
if (noBestMedia()) codec = "h264";
|
if (noBestMedia()) codec = "h264";
|
||||||
|
|
Loading…
Reference in a new issue