[FFmpeg-cvslog] r9338 - trunk/libavcodec/fraps.c

mru subversion
Sat Jun 16 17:15:17 CEST 2007


Author: mru
Date: Sat Jun 16 17:15:17 2007
New Revision: 9338

Log:
correct type of qsort() comparison callback


Modified:
   trunk/libavcodec/fraps.c

Modified: trunk/libavcodec/fraps.c
==============================================================================
--- trunk/libavcodec/fraps.c	(original)
+++ trunk/libavcodec/fraps.c	Sat Jun 16 17:15:17 2007
@@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *a
  * 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;
 }
 




More information about the ffmpeg-cvslog mailing list