mirror of
https://github.com/nu774/fdkaac.git
synced 2025-06-05 23:29:14 +02:00
--tag-from-json: properly support number/total format in json track field
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user