diff assdec.c @ 4484:da64b6d7a2d9 libavformat

Silence "assdec.c:146: warning: passing argument 4 of ¡Æqsort¡Ç from incompatible pointer type" The alternative (schoolbook) solution is less readable.
author michael
date Sat, 14 Feb 2009 15:44:46 +0000
parents 45684dea4c9b
children 536e5527c1e0
line wrap: on
line diff
--- a/assdec.c	Sat Feb 14 13:44:21 2009 +0000
+++ b/assdec.c	Sat Feb 14 15:44:46 2009 +0000
@@ -143,7 +143,7 @@
         p++;
     }
 
-    qsort(ass->event, ass->event_count, sizeof(*ass->event), event_cmp);
+    qsort(ass->event, ass->event_count, sizeof(*ass->event), (void*)event_cmp);
 
     return 0;