mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Fix shadowVariable issues reported by cppcheck
cppcheck --enable=all --inline-suppr \ --suppress=noExplicitConstructor --suppress=unusedFunction \ --suppress=missingIncludeSystem --project=compile_commands.json
This commit is contained in:
parent
0af11d9fa5
commit
0dafbee35c
@ -408,9 +408,9 @@ void SHN::File::read(AudioProperties::ReadStyle propertiesStyle)
|
||||
return;
|
||||
}
|
||||
|
||||
auto channelCount = chunkData.toUShort(offset, false);
|
||||
auto fmtChannelCount = chunkData.toUShort(offset, false);
|
||||
offset += 2;
|
||||
if(props.channelCount != channelCount)
|
||||
if(props.channelCount != fmtChannelCount)
|
||||
debug("SHN::File::read() -- Channel count mismatch between Shorten and 'fmt ' chunk.");
|
||||
|
||||
props.sampleRate = static_cast<int>(chunkData.toUInt(offset, false));
|
||||
@ -480,9 +480,9 @@ void SHN::File::read(AudioProperties::ReadStyle propertiesStyle)
|
||||
return;
|
||||
}
|
||||
|
||||
auto channelCount = chunkData.toUShort(offset, true);
|
||||
auto commChannelCount = chunkData.toUShort(offset, true);
|
||||
offset += 2;
|
||||
if(props.channelCount != channelCount)
|
||||
if(props.channelCount != commChannelCount)
|
||||
debug("SHN::File::read() -- Channel count mismatch between Shorten and 'COMM' chunk.");
|
||||
|
||||
props.sampleFrames = static_cast<unsigned long>(chunkData.toUInt(offset, true));
|
||||
|
Loading…
Reference in New Issue
Block a user