Skip to content

Commit 6f00062

Browse files
committed
Fixing small regression with SetMaxSize and missing display_ratio and pixel_ratio
1 parent 2b42574 commit 6f00062

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Timeline.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Timeline::Timeline(int width, int height, Fraction fps, int sample_rate, int cha
5858
info.has_audio = true;
5959
info.has_video = true;
6060
info.video_length = info.fps.ToFloat() * info.duration;
61+
info.display_ratio = openshot::Fraction(width, height);
62+
info.display_ratio.Reduce();
63+
info.pixel_ratio = openshot::Fraction(1, 1);
6164

6265
// Init max image size
6366
SetMaxSize(info.width, info.height);

0 commit comments

Comments
 (0)