Skip to content
Snippets Groups Projects
Commit 9a92aea2 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

avutil: Add functions for allocating opaque contexts for algorithms


The current API where the plain size is exposed is not of much
use - in most cases it is allocated dynamically anyway.

If allocated e.g. on the stack via an uint8_t array, there's no
guarantee that the struct's members are aligned properly (unless
the array is overallocated and the opaque pointer within it
manually aligned to some unspecified alignment).

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent fb32f31a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment