fix green padding with vaapi i965 driver (#2298)

This commit is contained in:
Jason Dove
2025-08-11 17:39:01 +00:00
committed by GitHub
parent 8cbc3b083a
commit a04adf45c0
2 changed files with 4 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- YAML playouts in particular should build significantly faster
- Fix channel playout mode `On Demand` for Block and YAML schedules
- Fix QSV transitions when remote streaming from a media server
- Fix green output when padding with VAAPI accel and i965 driver
### Changed
- Allow multiple watermarks in playback troubleshooting

View File

@@ -575,13 +575,13 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder
if (desiredState.CroppedSize.IsNone && currentState.PaddedSize != desiredState.PaddedSize)
{
// pad_vaapi seems to pad with green when input is HDR
// also green with 10-bit content and i965
// also green with i965 driver
// so use software pad in these cases
bool is10Bit965 = currentState.BitDepth == 10 && ffmpegState.VaapiDriver
bool is965 = ffmpegState.VaapiDriver
.IfNone(string.Empty)
.Contains("i965", StringComparison.OrdinalIgnoreCase);
if (isHdrTonemap || is10Bit965)
if (isHdrTonemap || is965)
{
var padStep = new PadFilter(currentState, desiredState.PaddedSize);
currentState = padStep.NextState(currentState);