]> granicus.if.org Git - libass/commitdiff
Add a proper color check to the overlap compositing.
authorgreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 8 Mar 2009 04:03:24 +0000 (04:03 +0000)
committergreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 8 Mar 2009 04:03:24 +0000 (04:03 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28875 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 19cb89a4ec161108d8d0ba2ddf9891ee02b71734..368ee19c7b50a14b13fa074caa7dc82d39bf8e9e 100644 (file)
@@ -434,6 +434,9 @@ static void render_overlap(ass_image_t** last_tail, ass_image_t** tail, bitmap_h
        if ((*last_tail)->bitmap == (*tail)->bitmap)
                return;
 
+       if ((*last_tail)->color != (*tail)->color)
+               return;
+
        // Calculate overlap coordinates
        left = (ax > bx) ? ax : bx;
        top = (ay > by) ? ay : by;