]> git.sesse.net Git - vlc/commitdiff
Fix broken code.
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 15:39:37 +0000 (17:39 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 9 May 2008 15:52:18 +0000 (17:52 +0200)
modules/gui/fbosd.c

index 1a1f4036b1c0a58afa5982af21dffe6024b0560d..bb32b4f8d501fb83d4c56c8575394b99eb101ba1 100644 (file)
@@ -773,9 +773,9 @@ static int InvertAlpha( intf_thread_t *p_intf, picture_t **p_pic, video_format_t
 
     for( ; p_begin < p_end; p_begin += i_skip )
     {
-        uint8_t i_opacity;
+        uint8_t i_opacity = 0;
 
-        if( i_opacity != 0xFF )
+        if( *p_begin != 0xFF )
             i_opacity = 255 - *p_begin;
         *p_begin = i_opacity;
     }