From 6cbb086a1c5367c8230c5ea7ce6fe2ba3966e534 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sat, 14 Apr 2018 23:48:05 +0200 Subject: [PATCH] Fixed handling of MediaInfo "point" releases in FileAnalyzer_Task. --- src/Thread_FileAnalyzer_Task.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Thread_FileAnalyzer_Task.cpp b/src/Thread_FileAnalyzer_Task.cpp index 9833bc99..fd69a24a 100644 --- a/src/Thread_FileAnalyzer_Task.cpp +++ b/src/Thread_FileAnalyzer_Task.cpp @@ -379,7 +379,8 @@ const AudioFileModel& AnalyzeTask::parseMediaInfo(const QByteArray &data, AudioF qWarning("Invalid library identiofier property: \"%s\"", MUTILS_UTF8(identifier)); return audioFile; } - if (versionLib.isEmpty() || (!checkVersionStr(versionLib, m_mediaInfoVer / 100U, m_mediaInfoVer % 100U))) + const quint32 mediaInfoVer = (m_mediaInfoVer > 9999U) ? m_mediaInfoVer / 10U : m_mediaInfoVer; + if (versionLib.isEmpty() || (!checkVersionStr(versionLib, mediaInfoVer / 100U, mediaInfoVer % 100U))) { qWarning("Invalid library version property: \"%s\"", MUTILS_UTF8(versionLib)); return audioFile;