Skip to content

Commit

Permalink
Fix regression with YDLMaxHeight==0 and preferred video format set
Browse files Browse the repository at this point in the history
  • Loading branch information
clsid2 committed Jun 27, 2022
1 parent 734896a commit 82d5307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpc-hc/YoutubeDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void GetVideoScore(YDLStreamDetails& details) {
score += 1;
}

if (s.iYDLMaxHeight >= details.height) {
if (s.iYDLMaxHeight > 0 && s.iYDLMaxHeight >= details.height) {
score += 64;
}

Expand Down

0 comments on commit 82d5307

Please sign in to comment.