--tag-from-json: properly support number/total format in json track field

This commit is contained in:
nu774 2013-10-23 12:19:14 +09:00
parent bd8c9a5d15
commit 8cb6378fca
1 changed files with 1 additions and 1 deletions

View File

@ -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);