fix(pcmaudio): cast bytes_per_sample to int before logging

This commit is contained in:
Marcus Holland-Moritz 2024-01-11 12:26:52 +01:00
parent 46b1e3f58f
commit 64d2904f93

View File

@ -816,7 +816,8 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_caf(
LOG_WARN << "[CAF] " << path
<< ": `data` chunk size mismatch (pcm_len=" << pcm_length
<< ", #chan=" << meta.number_of_channels
<< ", bytes_per_sample=" << meta.bytes_per_sample << ")";
<< ", bytes_per_sample="
<< static_cast<int>(meta.bytes_per_sample) << ")";
return false;
}
@ -996,7 +997,8 @@ bool pcmaudio_categorizer_<LoggerPolicy>::check_wav_like(
LOG_WARN << "[" << FormatPolicy::format_name << "] " << path
<< ": `data` chunk size mismatch (pcm_len=" << pcm_length
<< ", #chan=" << meta.number_of_channels
<< ", bytes_per_sample=" << meta.bytes_per_sample << ")";
<< ", bytes_per_sample="
<< static_cast<int>(meta.bytes_per_sample) << ")";
return false;
}