]> granicus.if.org Git - libass/commitdiff
Fix a typo in collision detection code.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 18 Oct 2006 15:52:26 +0000 (15:52 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 18 Oct 2006 15:52:26 +0000 (15:52 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20297 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index f29b79bab3dc9d15ef94270fea6ae02d33289c98..a7d504ccdba31ffe830c1993873523d219dab7d7 100644 (file)
@@ -2009,7 +2009,7 @@ static int overlap(segment_t* s1, segment_t* s2)
 
 static int cmp_segment(const void* p1, const void* p2)
 {
-       return ((segment_t*)p1)->a - ((segment_t*)p1)->b;
+       return ((segment_t*)p1)->a - ((segment_t*)p2)->a;
 }
 
 static void shift_event(event_images_t* ei, int shift)