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