fix vaapi rate control mode (#1340)

This commit is contained in:
Jason Dove
2023-07-08 12:36:07 -05:00
committed by GitHub
parent a540efc2e1
commit 5978e8ecb1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Only allow a single instance of ErsatzTV to run
- This fixes some cases where the search index would become unusable
- Fix VAAPI rate control mode capability check
### Changed
- Rework startup process to show UI as early as possible
@@ -198,7 +198,7 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder
if (pipelineSteps.OfType<IEncoder>().All(e => e.Kind != StreamKind.Video))
{
RateControlMode rateControlMode =
_hardwareCapabilities.GetRateControlMode(videoStream.Codec, videoStream.PixelFormat)
_hardwareCapabilities.GetRateControlMode(desiredState.VideoFormat, desiredState.PixelFormat)
.IfNone(RateControlMode.VBR);
Option<IEncoder> maybeEncoder =