diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2018-12-20 00:22:03 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2018-12-20 22:59:42 +0300 |
commit | ee8856ffeb4247375f6cce41c89090647ccad3ea (patch) | |
tree | 5e7922276865281a7bd9217092fa9588cd55bfcd /src/picture.c | |
parent | b10771e9d6ab408b029b0cb5b22de8fa36e2f512 (diff) |
Perform stack realignment in every API entry point
Unlikely to cause problems in practice, but technically required since the
compiler is free to use aligned AVX stores to zero local stack-allocated
variables (when using the appropriate compiler flags) for example.
Diffstat (limited to 'src/picture.c')
-rw-r--r-- | src/picture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/picture.c b/src/picture.c index ba51d82..c6744d3 100644 --- a/src/picture.c +++ b/src/picture.c @@ -224,7 +224,7 @@ void dav1d_thread_picture_ref(Dav1dThreadPicture *dst, dst->progress = src->progress; } -void dav1d_picture_unref(Dav1dPicture *const p) { +void dav1d_picture_unref_internal(Dav1dPicture *const p) { validate_input(p != NULL); if (p->ref) { @@ -237,7 +237,7 @@ void dav1d_picture_unref(Dav1dPicture *const p) { } void dav1d_thread_picture_unref(Dav1dThreadPicture *const p) { - dav1d_picture_unref(&p->p); + dav1d_picture_unref_internal(&p->p); p->t = NULL; p->progress = NULL; |