decoder/opus: support all core tag names
This commit is contained in:
parent
a57a7b1a76
commit
dae6ecb680
@ -22,6 +22,7 @@
|
|||||||
#include "OpusReader.hxx"
|
#include "OpusReader.hxx"
|
||||||
#include "XiphTags.hxx"
|
#include "XiphTags.hxx"
|
||||||
#include "tag/TagHandler.hxx"
|
#include "tag/TagHandler.hxx"
|
||||||
|
#include "tag/Tag.hxx"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -31,6 +32,10 @@ gcc_pure
|
|||||||
static TagType
|
static TagType
|
||||||
ParseOpusTagName(const char *name)
|
ParseOpusTagName(const char *name)
|
||||||
{
|
{
|
||||||
|
TagType type = tag_name_parse_i(name);
|
||||||
|
if (type != TAG_NUM_OF_ITEM_TYPES)
|
||||||
|
return type;
|
||||||
|
|
||||||
return tag_table_lookup_i(xiph_tags, name);
|
return tag_table_lookup_i(xiph_tags, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user