From 859cfdc0e6aec50430183e9c756e7ef7898c54a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 16 Jun 2007 15:15:17 +0000 Subject: [PATCH] correct type of qsort() comparison callback Originally committed as revision 9338 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/fraps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }