mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-13 05:36:36 +00:00
move classes to portable project
This commit is contained in:
24
Emby.Server.Implementations/Sync/SyncHelper.cs
Normal file
24
Emby.Server.Implementations/Sync/SyncHelper.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Emby.Server.Implementations.Sync
|
||||
{
|
||||
public class SyncHelper
|
||||
{
|
||||
public static int? AdjustBitrate(int? profileBitrate, string quality)
|
||||
{
|
||||
if (profileBitrate.HasValue)
|
||||
{
|
||||
if (string.Equals(quality, "medium", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
profileBitrate = Math.Min(profileBitrate.Value, 4000000);
|
||||
}
|
||||
else if (string.Equals(quality, "low", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
profileBitrate = Math.Min(profileBitrate.Value, 1500000);
|
||||
}
|
||||
}
|
||||
|
||||
return profileBitrate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user