diff --git a/CMakeLists.txt b/CMakeLists.txt index 054e536..f56ca2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(META_GUI_OPTIONAL true) set(META_JS_SRC_DIR renamingutility) set(META_VERSION_MAJOR 3) set(META_VERSION_MINOR 2) -set(META_VERSION_PATCH 0) +set(META_VERSION_PATCH 1) set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) # add project files @@ -180,7 +180,7 @@ if (WIDGETS_GUI OR QUICK_GUI) endif () # find tagparser -find_package(tagparser 8.1.0 REQUIRED) +find_package(tagparser 8.3.0 REQUIRED) use_tag_parser() list(APPEND TEST_LIBRARIES ${TAG_PARSER_SHARED_LIB}) diff --git a/gui/fileinfomodel.cpp b/gui/fileinfomodel.cpp index 2715647..a2ac849 100644 --- a/gui/fileinfomodel.cpp +++ b/gui/fileinfomodel.cpp @@ -278,7 +278,7 @@ void FileInfoModel::updateCache() const TimeSpan duration = m_file->duration(); if (!duration.isNull()) { rootHelper.appendRow(tr("Duration"), duration); - rootHelper.appendRow(tr("Overall avg. bitrate"), bitrateToString(0.0078125 * m_file->size() / duration.totalSeconds())); + rootHelper.appendRow(tr("Overall avg. bitrate"), bitrateToString(m_file->overallAverageBitrate())); } const char *const mimeType = m_file->mimeType(); if (*mimeType) { diff --git a/misc/htmlinfo.cpp b/misc/htmlinfo.cpp index d7c44bc..9a8617e 100644 --- a/misc/htmlinfo.cpp +++ b/misc/htmlinfo.cpp @@ -913,7 +913,7 @@ public: if (!duration.isNull()) { m_rowMaker.mkRow(QCoreApplication::translate("HtmlInfo", "Duration"), qstr(duration.toString(TimeSpanOutputFormat::WithMeasures))); m_rowMaker.mkRow(QCoreApplication::translate("HtmlInfo", "Overall avg. bitrate"), - qstr(bitrateToString(0.0078125 * m_file.size() / duration.totalSeconds()))); + qstr(bitrateToString(m_file.overallAverageBitrate()))); } const char *const mimeType = m_file.mimeType(); if (*mimeType) {