libavformat: Add generic disc_subtitle tag mapping for asf

The mapping is taken from Picard's [1] and taglib's [2] documentation.

The mapping in Microsoft's docs [3] maps `TSST` from ID3 to
`WM/SetSubTitle`. However, some taggers [4] [5] use `WM/SubTitle` instead.
I believe this to be an error, especially since the official docs say otherwise.

[1]: https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#disc-subtitle
[2]: https://taglib.org/api/p_propertymapping.html
[3]: https://learn.microsoft.com/en-gb/windows/win32/wmformat/id3-tag-support
[4]: db95540de6/quodlibet/formats/wma.py (L43)
[5]: 989fb5b8f9/src/plugins/taglibmetadata/taglibasfsupport.cpp (L93)
This commit is contained in:
Tau Gärtli
2026-04-30 20:46:45 +02:00
parent ac4fc01d6f
commit 0abe230566
2 changed files with 5 additions and 2 deletions

View File

@@ -37,6 +37,9 @@ const AVMetadataConv ff_asf_metadata_conv[] = {
{ "WM/Language", "language" },
{ "WM/OriginalFilename", "filename" },
{ "WM/PartOfSet", "disc" },
/* SetSubTitle can be found in this mapping:
* https://learn.microsoft.com/en-gb/windows/win32/wmformat/id3-tag-support */
{ "WM/SetSubTitle", "disc_subtitle" },
{ "WM/Publisher", "publisher" },
{ "WM/Tool", "encoder" },
{ "WM/TrackNumber", "track" },

View File

@@ -1,5 +1,5 @@
1470acbb2e928d916f58a725a8d2ecd0 *tests/data/fate/generic-tags-remux-asf.asf
20594 tests/data/fate/generic-tags-remux-asf.asf
424865418175e7b42e77d4482fed91f1 *tests/data/fate/generic-tags-remux-asf.asf
20596 tests/data/fate/generic-tags-remux-asf.asf
#extradata 0: 4, 0x00020001
#tb 0: 1/1000
#media_type 0: audio