Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
165f3496
Commit
165f3496
authored
May 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logo: expansion safety
parent
59712f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/video_filter/logo.c
modules/video_filter/logo.c
+8
-6
No files found.
modules/video_filter/logo.c
View file @
165f3496
...
@@ -346,11 +346,12 @@ static int Create( vlc_object_t *p_this )
...
@@ -346,11 +346,12 @@ static int Create( vlc_object_t *p_this )
p_sys
->
pos
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-position"
);
p_sys
->
pos
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-position"
);
p_sys
->
posx
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-x"
);
p_sys
->
posx
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-x"
);
p_sys
->
posy
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-y"
);
p_sys
->
posy
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-y"
);
p_logo_list
->
i_delay
=
__MAX
(
__MIN
(
p_logo_list
->
i_delay
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-delay"
);
var_CreateGetIntegerCommand
(
p_vout
,
"logo-delay"
)
,
60000
),
0
);
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_repeat
=
var_CreateGetIntegerCommand
(
p_vout
,
"logo-repeat"
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
p_logo_list
->
i_alpha
=
var_CreateGetIntegerCommand
(
p_vout
,
var_CreateGetIntegerCommand
(
p_vout
,
"logo-transparency"
),
255
),
0
);
"logo-transparency"
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
p_logo_list
->
i_alpha
,
255
),
0
);
LoadLogoList
(
p_vout
,
p_logo_list
);
LoadLogoList
(
p_vout
,
p_logo_list
);
...
@@ -695,8 +696,9 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -695,8 +696,9 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
->
posx
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-x"
);
p_sys
->
posx
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-x"
);
p_sys
->
posy
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-y"
);
p_sys
->
posy
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-y"
);
p_sys
->
pos
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-position"
);
p_sys
->
pos
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-position"
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
var_CreateGetIntegerCommand
(
p_logo_list
->
i_alpha
=
var_CreateGetIntegerCommand
(
p_filter
,
p_filter
,
"logo-transparency"
),
255
),
0
);
"logo-transparency"
);
p_logo_list
->
i_alpha
=
__MAX
(
__MIN
(
p_logo_list
->
i_alpha
,
255
),
0
);
p_logo_list
->
i_delay
=
p_logo_list
->
i_delay
=
var_CreateGetIntegerCommand
(
p_filter
,
"logo-delay"
);
var_CreateGetIntegerCommand
(
p_filter
,
"logo-delay"
);
p_logo_list
->
i_repeat
=
p_logo_list
->
i_repeat
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment