summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-29 07:11:57 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-04 13:12:00 +0200
commitcac651c83417dde3b64a6620cac32f078c9c399f (patch)
treebf47384e3958b219842eef907dfbeed713ec3ec1 /cmdutils.h
parentdad09ff93f5df1ec987493f404d43cd16991e992 (diff)
cmdutils: move grow_array() from avconv to cmdutils.
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index 65b1ae48b7..2173f0d34b 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -333,4 +333,14 @@ int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
*/
void exit_program(int ret);
+/**
+ * Realloc array to hold new_size elements of elem_size.
+ * Calls exit_program() on failure.
+ *
+ * @param elem_size size in bytes of each element
+ * @param size new element count will be written here
+ * @return reallocated array
+ */
+void *grow_array(void *array, int elem_size, int *size, int new_size);
+
#endif /* LIBAV_CMDUTILS_H */