diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-29 23:18:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-29 23:18:01 +0100 |
| commit | 00301ddfa6a7f4c79593d8c86a0ff208aa3be68a (patch) | |
| tree | 18c003d92d5b9e3311c2fbd46113227c759438d5 | |
| parent | 714aa61dd8a0dac8a7625c4c66806685b36a05d0 (diff) | |
Fix video scaling when the video needs rotation (#2791).
| -rw-r--r-- | src/lib/ffmpeg_content.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<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()) { |
