fix vaapi rate control mode (#1340)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user