examples/inspect: use malloc/free
Instead of aom variants. This fixes a link error when using
`-DBUILD_SHARED_LIBS=1` after:
d737ca3ebe exports_com: rm aom_{malloc,free}
`aom_malloc` and `aom_free` are internal functions. The standard library
functions are sufficient for this example.
Thanks to Dan Fandrich (dan at telarity) for pointing out the issue.
Change-Id: Ic633c17f0648797c572908aba2fe805edc4cf2ab
(cherry picked from commit e44bcbc5206cb9ff18c0c65e0c38141dab926b92)
diff --git a/examples/inspect.c b/examples/inspect.c
index 28d3f74..9042eb8 100644
--- a/examples/inspect.c
+++ b/examples/inspect.c
@@ -153,10 +153,8 @@
&skip_non_transform_arg,
&combined_arg,
NULL };
-#define ENUM(name) \
- { #name, name }
-#define LAST_ENUM \
- { NULL, 0 }
+#define ENUM(name) { #name, name }
+#define LAST_ENUM { NULL, 0 }
typedef struct map_entry {
const char *name;
int value;
@@ -624,7 +622,7 @@
(void)data;
// We allocate enough space and hope we don't write out of bounds. Totally
// unsafe but this speeds things up, especially when compiled to Javascript.
- char *buffer = aom_malloc(MAX_BUFFER);
+ char *buffer = malloc(MAX_BUFFER);
if (!buffer) {
fprintf(stderr, "Error allocating inspect info buffer\n");
abort();
@@ -742,7 +740,7 @@
buf += put_str(buf, "},\n");
*(buf++) = 0;
on_frame_decoded_dump(buffer);
- aom_free(buffer);
+ free(buffer);
}
static void ifd_init_cb(void) {