diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-01-16 01:54:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-01-16 01:54:18 +0000 |
commit | 3f161c7eab3b65d80d51876916d3f169d50acfc5 (patch) | |
tree | cde152fda36fb3ad317ce958d7a3c333955f4efa /libavutil/tree.c | |
parent | b973f9ad7e7ef10454101b9292374d4903010ea1 (diff) | |
download | ffmpeg-3f161c7eab3b65d80d51876916d3f169d50acfc5.tar.gz |
simplify
Originally committed as revision 11533 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/tree.c')
-rw-r--r-- | libavutil/tree.c | 3 |
1 files changed, 1 insertions, 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{ |