mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-16 15:41:11 +02:00
Bug 2564 - Metadata: Artist and Year tags missing on M4A(AAC) exports
This commit is contained in:
@@ -1079,14 +1079,24 @@ bool ExportFFmpeg::AddTags(const Tags *tags)
|
||||
return false;
|
||||
}
|
||||
|
||||
SetMetadata(tags, "author", TAG_ARTIST);
|
||||
SetMetadata(tags, "album", TAG_ALBUM);
|
||||
SetMetadata(tags, "comment", TAG_COMMENTS);
|
||||
SetMetadata(tags, "genre", TAG_GENRE);
|
||||
SetMetadata(tags, "title", TAG_TITLE);
|
||||
SetMetadata(tags, "year", TAG_YEAR);
|
||||
SetMetadata(tags, "track", TAG_TRACK);
|
||||
|
||||
// Bug 2564: Add m4a tags
|
||||
if (mEncFormatDesc->audio_codec == AV_CODEC_ID_AAC)
|
||||
{
|
||||
SetMetadata(tags, "artist", TAG_ARTIST);
|
||||
SetMetadata(tags, "date", TAG_YEAR);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetMetadata(tags, "author", TAG_ARTIST);
|
||||
SetMetadata(tags, "year", TAG_YEAR);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user