zero clear LIB_INFO before calling aacEncGetLibInfo() v0.0.3
authornu774 <honeycomb77@gmail.com>
Sat, 5 Jan 2013 14:56:15 +0000 (23:56 +0900)
committernu774 <honeycomb77@gmail.com>
Sat, 5 Jan 2013 14:56:15 +0000 (23:56 +0900)
src/main.c
version.h

index fe4653e7d7f412f426e6b4f916d73c69e74259d4..19f8d88c5dae7fb9cf2f7068941d3325efc2295d 100644 (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)
index 4c3c19324f8e3e623e15cfeab3cc5153e9c2cb06..e10f46adaab5e23c22250d374ea4de9c17135b6c 100644 (file)
--- 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
This page took 0.012199 seconds and 4 git commands to generate.