1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bail on any error when checking for valid MP3 frames

This commit is contained in:
Leland Lucius 2020-08-11 10:10:51 -05:00
parent b0367049b9
commit 6d08c600df

View File

@ -594,7 +594,7 @@ bool MP3ImportFileHandle::CheckMP3()
if (mad_header_decode(&header, &stream))
{
// End of buffer.
if (stream.error == MAD_ERROR_BUFLEN)
if (stream.error != MAD_ERROR_NONE)
{
break;
}