Check for MusicBrainz id3v2 tags in ffmpeg.

Addresses #82.

Previously, the ffmpeg decoder only checked for the "generic"
MusicBrainz metadata keys used in other metadata container formats.
This commit is contained in:
Matthew Leon 2017-07-19 16:43:17 -07:00 committed by Max Kellermann
parent 573a413ee1
commit 4c0404c70d
2 changed files with 8 additions and 0 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.20.10 (not yet released)
* decoder
- ffmpeg: support MusicBrainz ID3v2 tags
ver 0.20.9 (2017/06/04)
* decoder

View File

@ -24,6 +24,7 @@
#include "FfmpegMetaData.hxx"
#include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx"
#include "tag/Id3MusicBrainz.hxx"
extern "C" {
#include <libavutil/dict.h>
@ -75,6 +76,11 @@ FfmpegScanDictionary(AVDictionary *dict,
i->name != nullptr; ++i)
FfmpegScanTag(i->type, dict, i->name,
handler, handler_ctx);
for (const struct tag_table *i = musicbrainz_txxx_tags;
i->name != nullptr; ++i)
FfmpegScanTag(i->type, dict, i->name,
handler, handler_ctx);
}
if (handler.pair != nullptr)