diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 1f71327dcf..71a4219dee 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *avctx) * Comparator - our nodes should ascend by count * 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; }