[Ffmpeg-cvslog] r7031 - in trunk/libavutil: Makefile tree.c tree.h
Måns Rullgård
mru
Tue Nov 14 03:28:43 CET 2006
"Daniel Serpell" <daniel.serpell at gmail.com> writes:
> H!
>
> On 11/13/06, M?ns Rullg?rd <mru at inprovide.com> wrote:
> [...]
>>
>> How is the root node supposed to be allocated?
>>
>
> See:
>
> michael <subversion at mplayerhq.hu> writes:
>> +int main(){
>> + int i,j,k;
>> + AVTreeNode *root= av_mallocz(sizeof(AVTreeNode));
>> +
>> + for(i=0; i<10000; i++){
>> + int j= (random()%863294);
> [...]
>> + av_log(NULL, AV_LOG_ERROR, "inserting %4d\n", j);
>> + av_tree_insert(&root, (void*)(j+1), cmp);
>> + }
>> + return 0;
>> +}
That won't work with the header only. It declares AVTreeNode as an
opaque struct.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-cvslog
mailing list