[vlc-devel] commit: Fix broken code. (Jean-Paul Saman )
git version control
git at videolan.org
Fri May 9 17:51:44 CEST 2008
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri May 9 17:39:37 2008 +0200| [b46799c7b42ebefaebbdf35a97f4602aba210ef4]
Fix broken code.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b46799c7b42ebefaebbdf35a97f4602aba210ef4
---
modules/gui/fbosd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/fbosd.c b/modules/gui/fbosd.c
index 1a1f403..bb32b4f 100644
--- a/modules/gui/fbosd.c
+++ b/modules/gui/fbosd.c
@@ -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;
}
More information about the vlc-devel
mailing list