ADd more null check
This commit is contained in:
parent
6b4f5a8663
commit
82260e22a2
|
@ -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