mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
simplify
Originally committed as revision 11533 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b973f9ad7e
commit
3f161c7eab
1 changed files with 1 additions and 2 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue