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

[mob][photos] Consider sample aspect ratio or pixel aspect ratio when parsing width and height of video used for calculating aspect ratio #3126

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

ashilkn
Copy link
Member

@ashilkn ashilkn commented Sep 4, 2024

Description

Most videos have a Pixel aspect ratio of 1:1. For the ones that do not have a PAR of 1:1, just using height and width from exif to calculate the aspect ratio of the video won't work. In such cases, sample_aspect_ratio should be considered.

Tests

Tested and working without bugs.

… parsing width and height of video used for calculating aspect ratio
@ashilkn ashilkn merged commit a904263 into main Sep 4, 2024
2 checks passed
@ashilkn ashilkn deleted the consider_SAR_for_video_dimensions branch September 4, 2024 12:34
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.

2 participants