--tag-from-json: properly support number/total format in json track field
authornu774 <honeycomb77@gmail.com>
Wed, 23 Oct 2013 03:19:14 +0000 (12:19 +0900)
committernu774 <honeycomb77@gmail.com>
Wed, 23 Oct 2013 03:19:14 +0000 (12:19 +0900)
src/metadata.c

index 625469fa2629c976442d0bea41384a3fa34076bd..96b2f28d8bd79b5e5a5e79632f70fa79ca25ddc2 100644 (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);
This page took 0.011598 seconds and 4 git commands to generate.