[Ffmpeg-cvslog] r7033 - trunk/libavutil/tree.c
Michael Niedermayer
michaelni
Tue Nov 14 10:54:57 CET 2006
Hi
On Tue, Nov 14, 2006 at 01:58:20AM +0000, M?ns Rullg?rd wrote:
> michael <subversion at mplayerhq.hu> writes:
>
> > Author: michael
> > Date: Tue Nov 14 02:06:15 2006
> > New Revision: 7033
> >
> > Modified:
> > trunk/libavutil/tree.c
> >
> > Log:
> > improve enumerate so arbitrary ranges can be enumerated quickly
> >
> > Modified: trunk/libavutil/tree.c
> > ==============================================================================
> > --- trunk/libavutil/tree.c (original)
> > +++ trunk/libavutil/tree.c Tue Nov 14 02:06:15 2006
> > @@ -93,9 +93,9 @@
> >
> > #if 0
> > void av_tree_enumerate(AVTreeNode *t, void *opaque, int (*f)(void *opaque, void *elem)){
> > - f(opaque, t->elem);
> > - av_tree_enumerate(t->child[0], opaque, f);
> > - av_tree_enumerate(t->child[1], opaque, f);
> > + int v= f(opaque, t->elem);
> > + if(v>=0) av_tree_enumerate(t->child[0], opaque, f);
> > + if(v<=0) av_tree_enumerate(t->child[1], opaque, f);
> > }
> > #endif
>
> Hmm... that #if 0 makes this function kind of hard to get to...
yes, its unused currently ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-cvslog
mailing list