From 795c097ea9a7c4965f89bf6fcefeeb9a451e7f24 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Tue, 20 Apr 2021 11:50:31 -0500 Subject: [PATCH] Fix VBR check in MP3 importer Reported here: https://github.com/audacity/audacity/commit/35e88d995b4c2be7ef0c06771d11bb4afb916528#r49760178 --- src/import/ImportMP3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import/ImportMP3.cpp b/src/import/ImportMP3.cpp index 8c2ca6b3c..2b67093c3 100644 --- a/src/import/ImportMP3.cpp +++ b/src/import/ImportMP3.cpp @@ -980,7 +980,7 @@ mad_flow MP3ImportFileHandle::FilterCB(struct mad_stream const *stream, } // Skip the VBR Scale - if (len >= 4 && flags && hasScale) + if (len >= 4 && flags & hasScale) { ptr += 4; len -= 4;