Originally committed as revision 18267 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -167,19 +167,20 @@ static void print(AVTreeNode *t, int depth){ · 166 unmodified lines | |||
| 167 | int i; | 167 | int i; |
| 168 | for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " "); | 168 | for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " "); |
| 169 | if(t){ | 169 | if(t){ |
| 170 | av_log(NULL, AV_LOG_ERROR, "Node %p %2d %4d\n", t, t->state, t->elem); | 170 | av_log(NULL, AV_LOG_ERROR, "Node %p %2d %p\n", t, t->state, t->elem); |
| 171 | print(t->child[0], depth+1); | 171 | print(t->child[0], depth+1); |
| 172 | print(t->child[1], depth+1); | 172 | print(t->child[1], depth+1); |
| 173 | }else | 173 | }else |
| 174 | av_log(NULL, AV_LOG_ERROR, "NULL\n"); | 174 | av_log(NULL, AV_LOG_ERROR, "NULL\n"); |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | static int cmp(const void *a, const void *b){ | 177 | static int cmp(void *a, const void *b){ |
| 178 | return a-b; | 178 | return (uint8_t*)a-(const uint8_t*)b; |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | int main(void){ | 181 | int main(void){ |
| 182 | int i,k; | 182 | int i; |
| 183 | void *k; | ||
| 183 | AVTreeNode *root= NULL, *node=NULL; | 184 | AVTreeNode *root= NULL, *node=NULL; |
| 184 | AVLFG prn; | 185 | AVLFG prn; |
| 185 | 186 | ||