diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-06-03 02:47:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 02:47:15 -0400 |
| commit | c31b2798a521e6bfe7c6b078306a1b2244c0ea93 (patch) | |
| tree | 2990fde1629a75f6e865e52b5dc0e4ed305e1c50 /MediaBrowser.Api/ApiEntryPoint.cs | |
| parent | 91b089c0fac7e6b6831f5768ab5e23ee5151d0be (diff) | |
| parent | 46420dfd68945fd7c7045b8492c401e3d8cd302d (diff) | |
Merge pull request #3180 from xumix/master
Refactor copy codec checks
Diffstat (limited to 'MediaBrowser.Api/ApiEntryPoint.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiEntryPoint.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index 6691080bc..c7485a2e9 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -284,8 +284,8 @@ namespace MediaBrowser.Api Width = state.OutputWidth, Height = state.OutputHeight, AudioChannels = state.OutputAudioChannels, - IsAudioDirect = string.Equals(state.OutputAudioCodec, "copy", StringComparison.OrdinalIgnoreCase), - IsVideoDirect = string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase), + IsAudioDirect = EncodingHelper.IsCopyCodec(state.OutputAudioCodec), + IsVideoDirect = EncodingHelper.IsCopyCodec(state.OutputVideoCodec), TranscodeReasons = state.TranscodeReasons }); } |
