From: nu774 Date: Sat, 5 Jan 2013 14:56:15 +0000 (+0900) Subject: zero clear LIB_INFO before calling aacEncGetLibInfo() X-Git-Tag: v0.0.3 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d1ce25369bea52068b6a4ba519372295a55775c8;p=fdkaac.git zero clear LIB_INFO before calling aacEncGetLibInfo() --- diff --git a/src/main.c b/src/main.c index fe4653e..19f8d88 100644 --- a/src/main.c +++ b/src/main.c @@ -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) diff --git a/version.h b/version.h index 4c3c193..e10f46a 100644 --- a/version.h +++ b/version.h @@ -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