Re: [libav-devel] [PATCH 1/3] avutil: Add functions for allocating opaque contexts for algorithms

2012-10-11 Thread Luca Barbato
On 10/11/2012 03:19 PM, Martin Storsjö wrote: > The current API where the plain size is exposed is not of much > use - in most cases it is allocated dynamically anyway. > The set looks fine. lu ___ libav-devel mailing list libav-devel@libav.org https:

[libav-devel] [PATCH 1/3] avutil: Add functions for allocating opaque contexts for algorithms

2012-10-11 Thread Martin Storsjö
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