mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
api/youtube: add missing else to adaptive codec fallback
This commit is contained in:
parent
225a721805
commit
3fe2bd3b7c
@ -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 New Issue
Block a user