diff --git a/containers/aligned_vector.h b/containers/aligned_vector.h index be62f6c..d5f361a 100644 --- a/containers/aligned_vector.h +++ b/containers/aligned_vector.h @@ -4,6 +4,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -128,6 +129,7 @@ AV_FORCE_INLINE void* aligned_vector_resize(AlignedVector* vector, const unsigne ret = aligned_vector_at(vector, previousCount); } else { vector->size = element_count; + ret = aligned_vector_at(vector, previousCount); } return ret;