From 8ba311410ab54cdaa7192f4077b5ff7fff508ba5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 14 Feb 2009 15:44:46 +0000 Subject: [PATCH] =?UTF-8?q?Silence=20"assdec.c:146:=20warning:=20passing?= =?UTF-8?q?=20argument=204=20of=20=E2=80=98qsort=E2=80=99=20from=20incompa?= =?UTF-8?q?tible=20pointer=20type"=20The=20alternative=20(schoolbook)=20so?= =?UTF-8?q?lution=20is=20less=20readable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 17230 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/assdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/assdec.c b/libavformat/assdec.c index 82e6a712d7..32fb09d22d 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -143,7 +143,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap) 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;