aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-14 12:28:18 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-20 20:40:26 +0200
commit2e6afa799ef693b94f993f54ed41a84f6d9f1685 (patch)
tree4bbaa6d60ca130e97a6a4a36bc86b6ac0319ba1e /fftools/cmdutils.h
parentb23abb7c484b0ada607a73a62ce6c6efe33fc47c (diff)
downloadffmpeg-2e6afa799ef693b94f993f54ed41a84f6d9f1685.tar.gz
fftools/cmdutils: add error handling to GROW_ARRAY()
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r--fftools/cmdutils.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index 0dfe8b313c..69c2123804 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -440,11 +440,7 @@ int grow_array(void **array, int elem_size, int *size, int new_size);
void *allocate_array_elem(void *array, size_t elem_size, int *nb_elems);
#define GROW_ARRAY(array, nb_elems)\
-do { \
- int _ret = grow_array((void**)&array, sizeof(*array), &nb_elems, nb_elems + 1); \
- if (_ret < 0) \
- report_and_exit(_ret); \
-} while (0)
+ grow_array((void**)&array, sizeof(*array), &nb_elems, nb_elems + 1)
#define GET_PIX_FMT_NAME(pix_fmt)\
const char *name = av_get_pix_fmt_name(pix_fmt);