mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/youtube: add missing else to adaptive codec fallback
This commit is contained in:
@ -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";
|
||||||
|
Reference in New Issue
Block a user