Browse code

correct type of qsort() comparison callback

Originally committed as revision 9338 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2007/06/17 00:15:17
Showing 1 changed files
... ...
@@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *avctx)
88 88
  * Comparator - our nodes should ascend by count
89 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 93
     return (a->count - b->count)*256 + a->sym - b->sym;
93 94
 }
94 95