mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix MJPEG hwenc may be incorrectly enabled on AMDGPU (#12695)
This commit is contained in:
parent
3c639c2e80
commit
cb8f01065a
@ -209,6 +209,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
{
|
||||
var hwType = encodingOptions.HardwareAccelerationType;
|
||||
|
||||
// Only Intel has VA-API MJPEG encoder
|
||||
if (hwType == HardwareAccelerationType.vaapi
|
||||
&& !(_mediaEncoder.IsVaapiDeviceInteliHD
|
||||
|| _mediaEncoder.IsVaapiDeviceInteli965))
|
||||
{
|
||||
return _defaultMjpegEncoder;
|
||||
}
|
||||
|
||||
if (hwType != HardwareAccelerationType.none
|
||||
&& encodingOptions.EnableHardwareEncoding
|
||||
&& _mjpegCodecMap.TryGetValue(hwType, out var preferredEncoder)
|
||||
|
Loading…
x
Reference in New Issue
Block a user