Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle streams that are rotated 90° or 270° #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crishoj
Copy link

@crishoj crishoj commented Sep 29, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #83
License MIT

What's in this PR?

Change getDimensions() in AutoReps to check stream rotation and return effective dimensions, by flipping height/width when rotation is 90° or 270°.

Which problem does the PR fix?

Portrait videos from e.g. iPhones are mistakenly assumed to have landscape orientation, because displaymatrix: rotation of -90.00 degrees is not taken into account in AutoReps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Portrait videos are stretching
1 participant