Avoid copying fields when making Vorbis comment

This commit is contained in:
Martchus 2021-12-31 01:18:45 +01:00
parent 4e80c31e98
commit 41ddccb455
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ void VorbisComment::make(std::ostream &stream, VorbisCommentFlags flags, Diagnos
writer.writeUInt32LE(0);
// write fields
std::uint32_t fieldsWritten = 0;
for (auto i : fields()) {
for (auto &i : fields()) {
VorbisCommentField &field = i.second;
if (!field.value().isEmpty()) {
try {