1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

improve enumerate so arbitrary ranges can be enumerated quickly

Originally committed as revision 7033 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-11-14 01:06:15 +00:00
parent 8cb976931a
commit 3320687691

View File

@ -93,9 +93,9 @@ void av_tree_destroy(AVTreeNode *t){
#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