summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_fingerprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_fingerprint.c')
-rw-r--r--video/filter/vf_fingerprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_fingerprint.c b/video/filter/vf_fingerprint.c
index 3fa2ed6770..9f511e168f 100644
--- a/video/filter/vf_fingerprint.c
+++ b/video/filter/vf_fingerprint.c
@@ -136,8 +136,8 @@ static void reinit_fmt(struct mp_filter *f, struct mp_image *mpi)
size_t tmp_size;
if (!zimg_filter_graph_get_tmp_size(p->zimg_graph, &tmp_size)) {
- if (posix_memalign(&p->zimg_tmp, ZIMG_ALIGN, tmp_size))
- p->zimg_tmp = NULL;
+ tmp_size = MP_ALIGN_UP(tmp_size, ZIMG_ALIGN);
+ p->zimg_tmp = aligned_alloc(ZIMG_ALIGN, tmp_size);
}
if (!p->zimg_tmp) {