Unit test for video ratio scaling

master
Alexandru Pisarenco 5 years ago
parent fb4473a1a8
commit 728e5d2834

@ -0,0 +1,17 @@
from minfo import MediaInfo, Ratio, Resolution
def test_square_source():
info = MediaInfo()
info.general = {
}
info.video = {
"Width": 576,
"Height": 576,
"DisplayAspectRatio": 1.778
}
info.determine_aspect_properties()
assert info.resolution == Resolution(576, 576)
assert info.pixel_aspect_ratio == Ratio(16, 9)
Loading…
Cancel
Save