mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
update ResolutionNormalizer
This commit is contained in:
@@ -58,12 +58,16 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
private static ResolutionConfiguration GetResolutionConfiguration(int outputBitrate)
|
||||
{
|
||||
ResolutionConfiguration previousOption = null;
|
||||
|
||||
foreach (var config in Configurations)
|
||||
{
|
||||
if (outputBitrate <= config.MaxBitrate)
|
||||
{
|
||||
return config;
|
||||
return previousOption ?? config;
|
||||
}
|
||||
|
||||
previousOption = config;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user