[FFmpeg-devel] [PATCH] install aes.h, des.h and rc4.h
Reimar Döffinger
Reimar.Doeffinger
Fri Feb 6 21:53:16 CET 2009
On Fri, Feb 06, 2009 at 09:17:58PM +0100, Michael Niedermayer wrote:
> i dont like casting AVAES in stone, the inconvenience from a
> single alloca() is not worth it
> so not ok
First, "casting AVAES in stone" certainly is an exaggeration, at most it
needs a major version bump,and even that only if the size or alignment
requirements change.
Also, you know the reasons: alloca is not portable, other methods might
not provide sufficient alignment or have other issues.
But maybe we can find a better solution.
What about a
void *av_alloca(uint8_t *);
Usage would be
uint8_t buffer[size + AV_ALLOCA_PADDING];
struct AVAES *a = av_alloca(buffer);
Does that seem like it might make a good solution or does it have
serious issues?
Greetings,
Reimar D?ffinger
More information about the ffmpeg-devel
mailing list