Merge pull request #7129 from crobibero/null-check
This commit is contained in:
commit
98962cc21f
|
@ -1278,7 +1278,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
param += " -pix_fmt nv21";
|
||||
}
|
||||
|
||||
var isVc1 = string.Equals(state.VideoStream.Codec, "vc1", StringComparison.OrdinalIgnoreCase);
|
||||
var isVc1 = string.Equals(state.VideoStream?.Codec, "vc1", StringComparison.OrdinalIgnoreCase);
|
||||
var isLibX265 = string.Equals(videoEncoder, "libx265", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
if (string.Equals(videoEncoder, "libx264", StringComparison.OrdinalIgnoreCase) || isLibX265)
|
||||
|
|
Loading…
Reference in New Issue
Block a user