From: nu774 Date: Sun, 6 Jan 2013 04:26:19 +0000 (+0900) Subject: retrieve bitrate for tool tag with aacEncoder_GetParam() X-Git-Tag: v0.0.4~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=112fdaf461c803a3980f243916e5a83701db7bdd;p=fdkaac.git retrieve bitrate for tool tag with aacEncoder_GetParam() --- diff --git a/src/main.c b/src/main.c index 5318fdb..41ea731 100644 --- a/src/main.c +++ b/src/main.c @@ -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); }