aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-13 17:50:16 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-20 20:40:26 +0200
commit6be4a2939712136fd83aba2a843c8900829a73c2 (patch)
tree5dd2c0d1a8559659989608b7151c37f3dbe04594 /fftools/cmdutils.h
parent8eb5adeab87b8f5a367e0f6b39de53c0bf65a9a2 (diff)
downloadffmpeg-6be4a2939712136fd83aba2a843c8900829a73c2.tar.gz
fftools/cmdutils: add error handling to allocate_array_elem()
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r--fftools/cmdutils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index decd23040f..6b9d7f80ae 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -430,13 +430,12 @@ void *grow_array(void *array, int elem_size, int *size, int new_size);
* Atomically add a new element to an array of pointers, i.e. allocate
* a new entry, reallocate the array of pointers and make the new last
* member of this array point to the newly allocated buffer.
- * Calls exit() on failure.
*
* @param array array of pointers to reallocate
* @param elem_size size of the new element to allocate
* @param nb_elems pointer to the number of elements of the array array;
* *nb_elems will be incremented by one by this function.
- * @return pointer to the newly allocated entry
+ * @return pointer to the newly allocated entry or NULL on failure
*/
void *allocate_array_elem(void *array, size_t elem_size, int *nb_elems);