Write preferred padding also when making Ogg files

This commit is contained in:
Martchus 2024-06-15 22:56:39 +02:00
parent fcc6dee569
commit 494416f086
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,9 @@ void OggContainer::makeVorbisCommentSegment(stringstream &buffer, CopyHelper<653
}
default:;
}
for (auto padding = fileInfo().preferredPadding(); padding; --padding) {
buffer.put(0);
}
newSegmentSizes.push_back(static_cast<std::uint32_t>(buffer.tellp() - offset));
}