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
acb49d8a
Commit
acb49d8a
authored
Nov 29, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix devision by zero in spu_RenderSubpictures.
parent
9a3e5785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+10
-2
No files found.
src/video_output/vout_subpictures.c
View file @
acb49d8a
...
@@ -513,12 +513,20 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
...
@@ -513,12 +513,20 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
subpicture_t
*
p_subpic
,
subpicture_t
*
p_subpic
,
int
i_scale_width_orig
,
int
i_scale_height_orig
)
int
i_scale_width_orig
,
int
i_scale_height_orig
)
{
{
int
i_source_video_width
=
p_fmt
->
i_width
*
1000
/
i_scale_width_orig
;
int
i_source_video_width
;
int
i_source_video_height
=
p_fmt
->
i_height
*
1000
/
i_scale_height_orig
;
int
i_source_video_height
;
/* Get lock */
/* Get lock */
vlc_mutex_lock
(
&
p_spu
->
subpicture_lock
);
vlc_mutex_lock
(
&
p_spu
->
subpicture_lock
);
if
(
i_scale_width_orig
<=
0
)
i_scale_width_orig
=
1
;
if
(
i_scale_height_orig
<=
0
)
i_scale_height_orig
=
1
;
i_source_video_width
=
p_fmt
->
i_width
*
1000
/
i_scale_width_orig
;
i_source_video_height
=
p_fmt
->
i_height
*
1000
/
i_scale_height_orig
;
/* Check i_status again to make sure spudec hasn't destroyed the subpic */
/* Check i_status again to make sure spudec hasn't destroyed the subpic */
while
(
(
p_subpic
!=
NULL
)
&&
(
p_subpic
->
i_status
!=
FREE_SUBPICTURE
)
)
while
(
(
p_subpic
!=
NULL
)
&&
(
p_subpic
->
i_status
!=
FREE_SUBPICTURE
)
)
{
{
...
...
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