From 3f161c7eab3b65d80d51876916d3f169d50acfc5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 Jan 2008 01:54:18 +0000 Subject: [PATCH] simplify Originally committed as revision 11533 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavutil/tree.c b/libavutil/tree.c index b6d043963c..a7bd1b4bcc 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -57,9 +57,8 @@ void *av_tree_insert(AVTreeNode **tp, void *key, int (*cmp)(void *key, const voi return t->elem; else if(t->child[0]||t->child[1]){ int i= !t->child[0]; - AVTreeNode **child= &t->child[i]; void *next_elem[2]; - av_tree_find(*child, key, cmp, next_elem); + av_tree_find(t->child[i], key, cmp, next_elem); key= t->elem= next_elem[i]; v= -i; }else{