footageviewer: set divider

This commit is contained in:
itsmattkc
2021-04-29 22:25:03 +10:00
parent 2910b8e292
commit 65d7b82090
+6 -1
View File
@@ -136,7 +136,12 @@ void Footage::InputValueChangedEvent(const QString &input, int element)
decoder_ = footage_info.decoder();
for (int i=0; i<footage_info.GetVideoStreams().size(); i++) {
AddStream(Track::kVideo, QVariant::fromValue(footage_info.GetVideoStreams().at(i)));
VideoParams vp = footage_info.GetVideoStreams().at(i);
// FIXME: Make this customizable
vp.set_divider(VideoParams::generate_auto_divider(vp.width(), vp.height()));
AddStream(Track::kVideo, QVariant::fromValue(vp));
}
if (!footage_info.GetVideoStreams().isEmpty()) {