mirror of https://github.com/nu774/fdkaac.git
--tag-from-json: properly support number/total format in json track field
This commit is contained in:
parent
bd8c9a5d15
commit
8cb6378fca
|
@ -154,7 +154,7 @@ void tag_put_number_pair(m4af_ctx_t *m4af, uint32_t fcc,
|
|||
char buf[128];
|
||||
aacenc_tag_entry_t entry = { 0 };
|
||||
|
||||
if (snumber) sscanf(snumber, "%u", &number);
|
||||
if (snumber) sscanf(snumber, "%u/%u", &number, &total);
|
||||
if (stotal) sscanf(stotal, "%u", &total);
|
||||
if (number) {
|
||||
if (total) sprintf(buf, "%u/%u", number, total);
|
||||
|
|
Loading…
Reference in New Issue