OSDN Git Service

Fixed FAAD progress parsing.
authorLoRd_MuldeR <mulder2@gmx.de>
Sat, 16 Dec 2017 20:32:05 +0000 (21:32 +0100)
committerLoRd_MuldeR <mulder2@gmx.de>
Sat, 16 Dec 2017 20:32:05 +0000 (21:32 +0100)
src/Config.h
src/Decoder_AAC.cpp

index c9bc5bd..2551513 100644 (file)
@@ -35,7 +35,7 @@
 #define VER_LAMEXP_MINOR_LO                                    6
 #define VER_LAMEXP_TYPE                                                Beta
 #define VER_LAMEXP_PATCH                                       3
-#define VER_LAMEXP_BUILD                                       2080
+#define VER_LAMEXP_BUILD                                       2081
 #define VER_LAMEXP_CONFG                                       2002
 
 ///////////////////////////////////////////////////////////////////////////////
index cf9fbba..4604e6c 100644 (file)
@@ -61,7 +61,7 @@ bool AACDecoder::decode(const QString &sourceFile, const QString &outputFile, QA
        }
 
        int prevProgress = -1;
-       QRegExp regExp("\\[(\\d+)%\\]\\s+decoding\\s+");
+       QRegExp regExp("\\b(\\d+)%\\s+decoding", Qt::CaseInsensitive);
 
        const result_t result = awaitProcess(process, abortFlag, [this, &prevProgress, &regExp](const QString &text)
        {