retrieve bitrate for tool tag with aacEncoder_GetParam()

This commit is contained in:
nu774 2013-01-06 13:26:19 +09:00
parent af8fa38d33
commit 112fdaf461
1 changed files with 2 additions and 1 deletions

View 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);
}