[FFmpeg-cvslog] r17230 - trunk/libavformat/assdec.c

michael subversion
Sat Feb 14 16:44:46 CET 2009


Author: michael
Date: Sat Feb 14 16:44:46 2009
New Revision: 17230

Log:
Silence "assdec.c:146: warning: passing argument 4 of ?qsort? from incompatible pointer type"
The alternative (schoolbook) solution is less readable.

Modified:
   trunk/libavformat/assdec.c

Modified: trunk/libavformat/assdec.c
==============================================================================
--- trunk/libavformat/assdec.c	Sat Feb 14 16:37:40 2009	(r17229)
+++ trunk/libavformat/assdec.c	Sat Feb 14 16:44:46 2009	(r17230)
@@ -143,7 +143,7 @@ static int read_header(AVFormatContext *
         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;
 




More information about the ffmpeg-cvslog mailing list