level 1
查到一点,准备测试。mkvtoolnix\src\common\chapter_parser_cue.cpp从235行开始static voidadd_tag_for_global_cue_settings(cue_parser_args_t &a, KaxTags **tags) { KaxTag *tag; KaxTagTargets *targets; string s; int i; if (tags == NULL) return; if (*tags == NULL) *tags = new KaxTags; tag = new KaxTag; targets = &GetChild
(*tag); *static_cast
(&GetChild
(*targets)) = TAG_TARGETTYPE_ALBUM; *static_cast
(&GetChild
(*targets)) = "album"; create_tag1(a.global_performer, "ARTIST"); create_tag1(a.global_title, "TITLE"); create_tag1(a.global_date, "DATE_RELEASED"); create_tag1(a.global_disc_id, "DISCID"); create_tag1(a.global_catalog, "CATALOG_NUMBER"); for (i = 0; i < a.global_rem.size(); i++) create_tag1(a.global_rem[i], "COMMENT"); if (FINDFIRST(tag, KaxTagSimple) != NULL) (*tags)->PushElement(*tag); else delete tag;}
2008年05月17日 13点05分