Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a948f096
Commit
a948f096
authored
Aug 28, 2013
by
Rémi Duraffort
Committed by
Jean-Baptiste Kempf
Aug 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VLC_CLIP usage (and potential divisions by zero)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
e5beadb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/video_splitter/panoramix.c
modules/video_splitter/panoramix.c
+2
-2
modules/video_splitter/wall.c
modules/video_splitter/wall.c
+2
-2
No files found.
modules/video_splitter/panoramix.c
View file @
a948f096
...
...
@@ -501,8 +501,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
a_0
=
p_sys
->
bz_begin
;
/* */
p_sys
->
i_col
=
VLC_CLIP
(
COL_MAX
,
1
,
p_sys
->
i_col
);
p_sys
->
i_row
=
VLC_CLIP
(
ROW_MAX
,
1
,
p_sys
->
i_row
);
p_sys
->
i_col
=
VLC_CLIP
(
p_sys
->
i_col
,
1
,
COL_MAX
);
p_sys
->
i_row
=
VLC_CLIP
(
p_sys
->
i_row
,
1
,
ROW_MAX
);
msg_Dbg
(
p_splitter
,
"opening a %i x %i wall"
,
p_sys
->
i_col
,
p_sys
->
i_row
);
...
...
modules/video_splitter/wall.c
View file @
a948f096
...
...
@@ -137,10 +137,10 @@ static int Open( vlc_object_t *p_this )
/* */
p_sys
->
i_col
=
var_CreateGetInteger
(
p_splitter
,
CFG_PREFIX
"cols"
);
p_sys
->
i_col
=
VLC_CLIP
(
COL_MAX
,
1
,
p_sys
->
i_col
);
p_sys
->
i_col
=
VLC_CLIP
(
p_sys
->
i_col
,
1
,
COL_MAX
);
p_sys
->
i_row
=
var_CreateGetInteger
(
p_splitter
,
CFG_PREFIX
"rows"
);
p_sys
->
i_row
=
VLC_CLIP
(
ROW_MAX
,
1
,
p_sys
->
i_row
);
p_sys
->
i_row
=
VLC_CLIP
(
p_sys
->
i_row
,
1
,
ROW_MAX
);
msg_Dbg
(
p_splitter
,
"opening a %i x %i wall"
,
p_sys
->
i_col
,
p_sys
->
i_row
);
...
...
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