[Ffmpeg-cvslog] r7031 - in trunk/libavutil: Makefile tree.c tree.h
Daniel Serpell
daniel.serpell
Tue Nov 14 03:14:26 CET 2006
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;
> +}
Daniel.
More information about the ffmpeg-cvslog
mailing list