From: nu774 Date: Wed, 23 Oct 2013 03:19:14 +0000 (+0900) Subject: --tag-from-json: properly support number/total format in json track field X-Git-Tag: v0.4.0~5 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=8cb6378fca9e68eae6ed8d1fda2ff1398c79a211;p=fdkaac.git --tag-from-json: properly support number/total format in json track field --- diff --git a/src/metadata.c b/src/metadata.c index 625469f..96b2f28 100644 --- a/src/metadata.c +++ b/src/metadata.c @@ -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);