mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Only enable VAAPI MJPEG encoder on Intel iHD driver (#14433)
This commit is contained in:
parent
4d5ba8d7a5
commit
db55d983f8
@ -230,10 +230,10 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
var hwType = encodingOptions.HardwareAccelerationType;
|
var hwType = encodingOptions.HardwareAccelerationType;
|
||||||
|
|
||||||
// Only Intel has VA-API MJPEG encoder
|
// Only enable VA-API MJPEG encoder on Intel iHD driver.
|
||||||
|
// Legacy platforms supported ONLY by i965 do not support MJPEG encoder.
|
||||||
if (hwType == HardwareAccelerationType.vaapi
|
if (hwType == HardwareAccelerationType.vaapi
|
||||||
&& !(_mediaEncoder.IsVaapiDeviceInteliHD
|
&& !_mediaEncoder.IsVaapiDeviceInteliHD)
|
||||||
|| _mediaEncoder.IsVaapiDeviceInteli965))
|
|
||||||
{
|
{
|
||||||
return _defaultMjpegEncoder;
|
return _defaultMjpegEncoder;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user