Fix video scaling when the video needs rotation (#2791).
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Mar 2024 22:18:01 +0000 (23:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Mar 2024 22:18:01 +0000 (23:18 +0100)
src/lib/ffmpeg_content.cc

index c788e7cb1d271296fd201477f9e0e6631de0c32b..4a7c87b341e1046e0efbc4cabe965626d68ce01e 100644 (file)
@@ -295,8 +295,10 @@ FFmpegContent::examine (shared_ptr<const Film> film, shared_ptr<Job> 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()) {