summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.cpp b/helper.cpp
index 627aec7..6a6a05c 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -261,7 +261,7 @@ namespace Helper {
QPixmap preview(const QString &path){
QVariantMap m = ffmpegData(path);
- auto secs = m.value("duration").toInt();
+ auto secs = static_cast<int>(m.value("duration").toFloat());
auto interval = secs / 4;
QImage retval(640 * 2 + 40, 480 * 2 + 40, QImage::Format_ARGB32);
retval.fill(Qt::transparent);