Commit 14e12fd2 authored by mru's avatar mru

correct type of qsort() comparison callback


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9338 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f72cf3e4
...@@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *avctx) ...@@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *avctx)
* Comparator - our nodes should ascend by count * Comparator - our nodes should ascend by count
* but with preserved symbol order * but with preserved symbol order
*/ */
static int huff_cmp(const Node *a, const Node *b){ static int huff_cmp(const void *va, const void *vb){
const Node *a = va, *b = vb;
return (a->count - b->count)*256 + a->sym - b->sym; return (a->count - b->count)*256 + a->sym - b->sym;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment