Merge pull request #569 from tcely/patch-2

Adjust to correct 60 fps case
This commit is contained in:
meeb 2024-12-10 17:42:43 +11:00 committed by GitHub
commit e230b7ce36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,7 +331,7 @@ def get_best_video_format(media):
for fmt in video_formats:
# Check for a codec, hdr and fps match but drop the resolution
if (source_vcodec == fmt['vcodec'] and
not fmt['is_hdr'] and fmt['is_60fps']):
not fmt['is_hdr'] and not fmt['is_60fps']):
# Close match
exact_match, best_match = False, fmt
break