]> iEval git - fdkaac.git/commitdiff
retrieve bitrate for tool tag with aacEncoder_GetParam()
authornu774 <honeycomb77@gmail.com>
Sun, 6 Jan 2013 04:26:19 +0000 (13:26 +0900)
committernu774 <honeycomb77@gmail.com>
Sun, 6 Jan 2013 04:26:19 +0000 (13:26 +0900)
src/main.c

index 5318fdbf41ce03cf473bca5c24d3b1ed864bc7ff..41ea73181187c2c68116d886683b468916a581e1 100644 (file)
@@ -409,7 +409,8 @@ int finalize_m4a(m4af_writer_t *m4af, const aacenc_param_ex_t *params,
         if (params->bitrate_mode)
             sprintf(p, "VBR mode %d", params->bitrate_mode);
         else
-            sprintf(p, "CBR %dkbps", params->bitrate / 1000);
+            sprintf(p, "CBR %dkbps",
+                    aacEncoder_GetParam(encoder, AACENC_BITRATE) / 1000);
 
         m4af_add_itmf_string_tag(m4af, M4AF_TAG_TOOL, tool_info);
     }
This page took 0.02637 seconds and 4 git commands to generate.