[vlc-devel] commit: Logo: expansion safety ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed May 20 18:53:54 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 19 20:23:25 2009 +0300| [165f3496a9dce9eb5aa5811929fb6e1588d4a5e2] | committer: Rémi Denis-Courmont
Logo: expansion safety
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=165f3496a9dce9eb5aa5811929fb6e1588d4a5e2
---
modules/video_filter/logo.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c
index ebc137a..ba2152b 100644
--- a/modules/video_filter/logo.c
+++ b/modules/video_filter/logo.c
@@ -346,11 +346,12 @@ static int Create( vlc_object_t *p_this )
p_sys->pos = var_CreateGetIntegerCommand( p_vout, "logo-position" );
p_sys->posx = var_CreateGetIntegerCommand( p_vout, "logo-x" );
p_sys->posy = var_CreateGetIntegerCommand( p_vout, "logo-y" );
- p_logo_list->i_delay = __MAX( __MIN(
- var_CreateGetIntegerCommand( p_vout, "logo-delay" ) , 60000 ), 0 );
+ p_logo_list->i_delay = var_CreateGetIntegerCommand( p_vout, "logo-delay" );
+ p_logo_list->i_delay = __MAX( __MIN( p_logo_list->i_delay, 60000 ), 0 );
p_logo_list->i_repeat = var_CreateGetIntegerCommand( p_vout, "logo-repeat");
- p_logo_list->i_alpha = __MAX( __MIN(
- var_CreateGetIntegerCommand( p_vout, "logo-transparency" ), 255 ), 0 );
+ p_logo_list->i_alpha = var_CreateGetIntegerCommand( p_vout,
+ "logo-transparency" );
+ p_logo_list->i_alpha = __MAX( __MIN( p_logo_list->i_alpha, 255 ), 0 );
LoadLogoList( p_vout, p_logo_list );
@@ -695,8 +696,9 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys->posx = var_CreateGetIntegerCommand( p_filter, "logo-x" );
p_sys->posy = var_CreateGetIntegerCommand( p_filter, "logo-y" );
p_sys->pos = var_CreateGetIntegerCommand( p_filter, "logo-position" );
- p_logo_list->i_alpha = __MAX( __MIN( var_CreateGetIntegerCommand(
- p_filter, "logo-transparency"), 255 ), 0 );
+ p_logo_list->i_alpha = var_CreateGetIntegerCommand( p_filter,
+ "logo-transparency");
+ p_logo_list->i_alpha = __MAX( __MIN( p_logo_list->i_alpha, 255 ), 0 );
p_logo_list->i_delay =
var_CreateGetIntegerCommand( p_filter, "logo-delay" );
p_logo_list->i_repeat =
More information about the vlc-devel
mailing list