Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug where intermediate phase outputs could get too low height.
Basically our aspect ratio adjustment and lack of proper roundoff could conspire to let e.g. mix(1280x720, 939x939) = 1669x938, which is obviously wrong. I could probably have fixed it with an extra lrintf(), but it seems more robust to simply avoid the extra conversion (ie., never convert height -> width -> height). Add a unit test to verify.
- Loading branch information
Showing
3 changed files
with
90 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters