From 43ab885530a9b24eb03b060cbe0e895caf086fd7 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 17 Jun 2014 12:03:14 -0400 Subject: update latest channel content display --- .../Encoder/EncodingUtils.cs | 37 +--------------------- 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs') diff --git a/MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs b/MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs index bf4daf786..56ff427ad 100644 --- a/MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs +++ b/MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs @@ -1,7 +1,4 @@ -using MediaBrowser.Controller.MediaEncoding; -using MediaBrowser.Model.Entities; -using MediaBrowser.Model.MediaInfo; -using System; +using MediaBrowser.Model.MediaInfo; using System.Collections.Generic; using System.Linq; @@ -61,37 +58,5 @@ namespace MediaBrowser.MediaEncoding.Encoder { return isDvd ? "-probesize 1G -analyzeduration 200M" : string.Empty; } - - /// - /// Gets the number of audio channels to specify on the command line - /// - /// The request. - /// The audio stream. - /// System.Nullable{System.Int32}. - public static int? GetNumAudioChannelsParam(EncodingOptions request, MediaStream audioStream) - { - if (audioStream != null) - { - var codec = request.AudioCodec ?? string.Empty; - - if (audioStream.Channels > 2 && codec.IndexOf("wma", StringComparison.OrdinalIgnoreCase) != -1) - { - // wmav2 currently only supports two channel output - return 2; - } - } - - if (request.MaxAudioChannels.HasValue) - { - if (audioStream != null && audioStream.Channels.HasValue) - { - return Math.Min(request.MaxAudioChannels.Value, audioStream.Channels.Value); - } - - return request.MaxAudioChannels.Value; - } - - return request.AudioChannels; - } } } -- cgit v1.2.3