From 00301ddfa6a7f4c79593d8c86a0ff208aa3be68a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Mar 2024 23:18:01 +0100 Subject: [PATCH] Fix video scaling when the video needs rotation (#2791). --- src/lib/ffmpeg_content.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index c788e7cb1..4a7c87b34 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -295,8 +295,10 @@ FFmpegContent::examine (shared_ptr film, shared_ptr job) _filters.push_back(*Filter::from_id("hflip")); } else if (fabs (rot - 90) < 1.0) { _filters.push_back(*Filter::from_id("90clock")); + video->rotate_size(); } else if (fabs (rot - 270) < 1.0) { _filters.push_back(*Filter::from_id("90anticlock")); + video->rotate_size(); } } if (examiner->has_alpha()) { -- 2.30.2