diff --git a/taglib/shn/shnfile.cpp b/taglib/shn/shnfile.cpp index ffb54b6e..15ae9c15 100644 --- a/taglib/shn/shnfile.cpp +++ b/taglib/shn/shnfile.cpp @@ -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(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(chunkData.toUInt(offset, true));