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
92b27c22
Commit
92b27c22
authored
Sep 02, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scene: Fix division by 0
Close #9291
parent
8d0ea8a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/video_filter/scene.c
modules/video_filter/scene.c
+6
-2
No files found.
modules/video_filter/scene.c
View file @
92b27c22
...
...
@@ -30,6 +30,8 @@
# include "config.h"
#endif
#include <limits.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_block.h>
...
...
@@ -112,8 +114,8 @@ vlc_module_begin ()
REPLACE_TEXT
,
REPLACE_LONGTEXT
,
false
)
/* Snapshot method */
add_integer
(
CFG_PREFIX
"ratio"
,
50
,
RATIO_TEXT
,
RATIO_LONGTEXT
,
false
)
add_integer
_with_range
(
CFG_PREFIX
"ratio"
,
50
,
1
,
INT_MAX
,
RATIO_TEXT
,
RATIO_LONGTEXT
,
false
)
set_callbacks
(
Create
,
Destroy
)
vlc_module_end
()
...
...
@@ -188,6 +190,8 @@ static int Create( vlc_object_t *p_this )
p_sys
->
i_width
=
var_CreateGetInteger
(
p_this
,
CFG_PREFIX
"width"
);
p_sys
->
i_height
=
var_CreateGetInteger
(
p_this
,
CFG_PREFIX
"height"
);
p_sys
->
i_ratio
=
var_CreateGetInteger
(
p_this
,
CFG_PREFIX
"ratio"
);
if
(
p_sys
->
i_ratio
<=
0
)
p_sys
->
i_ratio
=
1
;
p_sys
->
b_replace
=
var_CreateGetBool
(
p_this
,
CFG_PREFIX
"replace"
);
p_sys
->
psz_prefix
=
var_CreateGetString
(
p_this
,
CFG_PREFIX
"prefix"
);
p_sys
->
psz_path
=
var_GetNonEmptyString
(
p_this
,
CFG_PREFIX
"path"
);
...
...
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