comparison fraps.c @ 5157:1d116d421bbb libavcodec

correct type of qsort() comparison callback
author mru
date Sat, 16 Jun 2007 15:15:17 +0000
parents 66ef3690d108
children 2b72f9bc4f06
comparison
equal deleted inserted replaced
5156:387979b83884 5157:1d116d421bbb
86 86
87 /** 87 /**
88 * Comparator - our nodes should ascend by count 88 * Comparator - our nodes should ascend by count
89 * but with preserved symbol order 89 * but with preserved symbol order
90 */ 90 */
91 static int huff_cmp(const Node *a, const Node *b){ 91 static int huff_cmp(const void *va, const void *vb){
92 const Node *a = va, *b = vb;
92 return (a->count - b->count)*256 + a->sym - b->sym; 93 return (a->count - b->count)*256 + a->sym - b->sym;
93 } 94 }
94 95
95 static void get_tree_codes(uint32_t *bits, int16_t *lens, uint8_t *xlat, Node *nodes, int node, uint32_t pfx, int pl, int *pos) 96 static void get_tree_codes(uint32_t *bits, int16_t *lens, uint8_t *xlat, Node *nodes, int node, uint32_t pfx, int pl, int *pos)
96 { 97 {