Fix missing commas and merge defects
This commit is contained in:
parent
3c82379759
commit
628734931c
|
@ -475,9 +475,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
if (state.IsVideoRequest
|
if (state.IsVideoRequest
|
||||||
&& string.Equals(encodingOptions.HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
&& string.Equals(encodingOptions.HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
var videoDecoder = GetHardwareAcceleratedVideoDecoder(state, encodingOptions);
|
|
||||||
var outputVideoCodec = GetVideoEncoder(state, encodingOptions);
|
|
||||||
|
|
||||||
var hasTextSubs = state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode;
|
var hasTextSubs = state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode;
|
||||||
|
|
||||||
if (!hasTextSubs)
|
if (!hasTextSubs)
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
"mpeg2_mediacodec",
|
"mpeg2_mediacodec",
|
||||||
"mpeg4_mediacodec",
|
"mpeg4_mediacodec",
|
||||||
"vp8_mediacodec",
|
"vp8_mediacodec",
|
||||||
"vp9_mediacodec"
|
"vp9_mediacodec",
|
||||||
"h264_videotoolbox",
|
"h264_videotoolbox",
|
||||||
"hevc_videotoolbox",
|
"hevc_videotoolbox",
|
||||||
"mpeg2_videotoolbox",
|
"mpeg2_videotoolbox",
|
||||||
|
@ -80,8 +80,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
"hevc_vaapi",
|
"hevc_vaapi",
|
||||||
"h264_omx",
|
"h264_omx",
|
||||||
"hevc_omx",
|
"hevc_omx",
|
||||||
"h264_v4l2m2m"
|
"h264_v4l2m2m",
|
||||||
"h264_videotoolbox"
|
"h264_videotoolbox",
|
||||||
"hevc_videotoolbox"
|
"hevc_videotoolbox"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
//_logger.Info("Supported decoders: {0}", string.Join(",", list.ToArray()));
|
//_logger.Info("Supported decoders: {0}", string.Join(",", list.ToArray()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<string> _hwaccels = Array.Empty<string>();
|
private List<string> _hwaccels = new List<string>();
|
||||||
public void SetAvailableHwaccels(IEnumerable<string> list)
|
public void SetAvailableHwaccels(IEnumerable<string> list)
|
||||||
{
|
{
|
||||||
_hwaccels = list.ToList();
|
_hwaccels = list.ToList();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user