]> git.sesse.net Git - ffmpeg/commit
avutil: Add functions for allocating opaque contexts for algorithms
authorMartin Storsjö <martin@martin.st>
Thu, 11 Oct 2012 12:08:04 +0000 (15:08 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 11 Oct 2012 20:35:27 +0000 (23:35 +0300)
commit9a92aea27bad2f5603ca85e0d0716c679a6b686c
treea38dae27b4c15cc4a75c0a3745351b8c5b3fd122
parentfb32f31af76ce784c86c59c86c28e5653e223610
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: Martin Storsjö <martin@martin.st>
doc/APIchanges
libavutil/aes.c
libavutil/aes.h
libavutil/md5.c
libavutil/md5.h
libavutil/sha.c
libavutil/sha.h
libavutil/tree.c
libavutil/tree.h
libavutil/version.h