From 8ffc8663a47a2a1a9d449b423154eef1490b3850 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 9 Dec 2025 01:16:53 -0500 Subject: [PATCH] Do not change aspect on snippets unless user explicitly sets it --- main.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index e699cbb..a3cadd8 100644 --- a/main.go +++ b/main.go @@ -6240,12 +6240,15 @@ func (s *appState) generateSnippet() { } } - // Check if aspect ratio conversion is needed - srcAspect := utils.AspectRatioFloat(src.Width, src.Height) - targetAspect := resolveTargetAspect(s.convert.OutputAspect, src) - aspectConversionNeeded := targetAspect > 0 && srcAspect > 0 && !utils.RatiosApproxEqual(targetAspect, srcAspect, 0.01) - if aspectConversionNeeded { - vf = append(vf, aspectFilters(targetAspect, s.convert.AspectHandling)...) + // Check if aspect ratio conversion is needed (only if user explicitly set OutputAspect) + aspectExplicit := s.convert.OutputAspect != "" && !strings.EqualFold(s.convert.OutputAspect, "Source") + if aspectExplicit { + srcAspect := utils.AspectRatioFloat(src.Width, src.Height) + targetAspect := resolveTargetAspect(s.convert.OutputAspect, src) + aspectConversionNeeded := targetAspect > 0 && srcAspect > 0 && !utils.RatiosApproxEqual(targetAspect, srcAspect, 0.01) + if aspectConversionNeeded { + vf = append(vf, aspectFilters(targetAspect, s.convert.AspectHandling)...) + } } // Frame rate conversion (only if explicitly set and different from source)