Re-added fix to check tool: check fails if the recorded file contains silence only

This commit is contained in:
Andrea Bondavalli 2021-02-17 20:35:02 +01:00
parent fe3ff1aabd
commit 8e12abcc0e

View File

@ -74,7 +74,7 @@ int main(int argc, char* argv[])
end:
//cout << "expected " << (int)curr << " byte " << (int)byte << endl;
int rc = 0;
if (fl.tellp() != end)
if (first || fl.tellp() != end)
{
cout << "error at position: " << fl.tellp() << endl;
rc = 1;