mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
Avoid creating zero-sized padding blocks.
This commit is contained in:
@ -235,7 +235,7 @@ bool FLAC::File::save()
|
||||
|
||||
long originalLength = d->streamStart - d->flacStart;
|
||||
int paddingLength = originalLength - data.size() - 4;
|
||||
if (paddingLength < 0) {
|
||||
if(paddingLength <= 0) {
|
||||
paddingLength = MinPaddingLength;
|
||||
}
|
||||
ByteVector padding = ByteVector::fromUInt(paddingLength);
|
||||
|
Reference in New Issue
Block a user