Update MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/7333/head
Isaac Gordezky 3 years ago committed by GitHub
parent 151ddd400d
commit def8500dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1677,8 +1677,9 @@ namespace MediaBrowser.Controller.MediaEncoding
}
// Source and target codecs must match
if (string.IsNullOrEmpty(videoStream.Codec) || (state.SupportedVideoCodecs.Any()
&& !state.SupportedVideoCodecs.Contains(videoStream.Codec, StringComparison.OrdinalIgnoreCase)))
if (string.IsNullOrEmpty(videoStream.Codec)
|| (state.SupportedVideoCodecs.Length != 0
&& !state.SupportedVideoCodecs.Contains(videoStream.Codec, StringComparison.OrdinalIgnoreCase)))
{
return false;
}

Loading…
Cancel
Save