You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/MediaInfo/AudioCodec.cs

33 lines
805 B

#pragma warning disable CS1591
using System;
namespace MediaBrowser.Model.MediaInfo
6 years ago
{
public static class AudioCodec
6 years ago
{
public static string GetFriendlyName(string codec)
{
if (codec.Length == 0)
{
return codec;
}
6 years ago
if (string.Equals(codec, "ac3", StringComparison.OrdinalIgnoreCase))
{
return "Dolby Digital";
}
else if (string.Equals(codec, "eac3", StringComparison.OrdinalIgnoreCase))
6 years ago
{
return "Dolby Digital+";
6 years ago
}
else if (string.Equals(codec, "dca", StringComparison.OrdinalIgnoreCase))
{
return "DTS";
}
return codec.ToUpperInvariant();
6 years ago
}
}
}