fix graphics engine with scaling behavior crop (#2398)

This commit is contained in:
Jason Dove
2025-09-08 13:36:13 +00:00
committed by GitHub
parent e8b51e8442
commit 044c8b7ad3
3 changed files with 7 additions and 2 deletions
@@ -490,11 +490,13 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
{
graphicsEngineInput = new GraphicsEngineInput();
FrameSize targetSize = await desiredState.CroppedSize.IfNoneAsync(desiredState.ScaledSize);
graphicsEngineContext = new GraphicsEngineContext(
channel.Number,
audioVersion.MediaItem,
graphicsElementContexts,
new Resolution { Width = desiredState.ScaledSize.Width, Height = desiredState.ScaledSize.Height },
new Resolution { Width = targetSize.Width, Height = targetSize.Height },
channel.FFmpegProfile.Resolution,
await playbackSettings.FrameRate.IfNoneAsync(24),
channelStartTime,