[FFmpeg-devel] [PATCH 1/4] lavu: add simple array implementation
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sun Mar 23 23:28:10 CET 2014
On 23.03.2014 17:41, Nicolas George wrote:
>> +int av_dynarray_add_nofree(void *tab_ptr, int *nb_ptr, void *elem)
>> +{
>> + void **tab = *(void ***)tab_ptr;
>> +
>> + AV_DYNARRAY_ADD(INT_MAX, sizeof(*tab), tab, *nb_ptr, {
>
>> + tab[*nb_ptr] = (intptr_t)elem;
>
> The cast seems wrong.
Overlooked this, thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavu-mem-add-av_dynarray_add_nofree-function.patch
Type: text/x-patch
Size: 2889 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140323/68c1eccc/attachment.bin>
More information about the ffmpeg-devel
mailing list