zero clear LIB_INFO before calling aacEncGetLibInfo()

This commit is contained in:
nu774 2013-01-05 23:56:15 +09:00
parent bae3489b91
commit d1ce25369b
2 changed files with 2 additions and 3 deletions

View File

@ -398,8 +398,7 @@ int finalize_m4a(m4af_writer_t *m4af, const aacenc_param_ex_t *params,
p += sprintf(p, PROGNAME " %s, ", fdkaac_version);
lib_info = malloc(FDK_MODULE_LAST * sizeof(LIB_INFO));
/* XXX: aacEncGetLibInfo() seems buggy and sometimes fails */
lib_info = calloc(FDK_MODULE_LAST, sizeof(LIB_INFO));
if (aacEncGetLibInfo(lib_info) == AACENC_OK) {
for (i = 0; i < FDK_MODULE_LAST; ++i)
if (lib_info[i].module_id == FDK_AACENC)

View File

@ -1,4 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
const char *fdkaac_version = "0.0.2";
const char *fdkaac_version = "0.0.3";
#endif