aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-16 15:15:17 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-16 15:15:17 +0000
commit859cfdc0e6aec50430183e9c756e7ef7898c54a5 (patch)
tree89dd6d309342e0fcaf6a71dab23a787b8aef6cb7 /libavcodec/fraps.c
parente336139f0c609c662d129a0a8a9acf91c1083e3d (diff)
downloadffmpeg-859cfdc0e6aec50430183e9c756e7ef7898c54a5.tar.gz
correct type of qsort() comparison callback
Originally committed as revision 9338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c3
1 files changed, 2 insertions, 1 deletions
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;
}