fix qsv subtitle scaling (#1367)

This commit is contained in:
Jason Dove
2023-08-10 10:16:10 -05:00
committed by GitHub
parent 797d4005e2
commit f945f16d97
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fix subtitle scaling when using QSV hardware acceleration
## [0.8.1-beta] - 2023-08-07
### Added
@@ -493,7 +493,7 @@ public class QsvPipelineBuilder : SoftwarePipelineBuilder
}
// only scale if scaling or padding was used for main video stream
if (videoInputFile.FilterSteps.Any(s => s is ScaleFilter or ScaleFilter or PadFilter))
if (videoInputFile.FilterSteps.Any(s => s is ScaleFilter or ScaleQsvFilter or PadFilter))
{
var scaleFilter = new ScaleImageFilter(desiredState.PaddedSize);
subtitle.FilterSteps.Add(scaleFilter);