Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
88e31f14
Commit
88e31f14
authored
Jul 20, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't scale when original widht/height is zero.
parent
4a1b6b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+11
-8
No files found.
src/video_output/vout_subpictures.c
View file @
88e31f14
...
...
@@ -567,8 +567,8 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
}
if
(
p_spu
->
p_text
)
{
if
(
p_subpic
->
i_original_picture_height
>
0
&&
p_subpic
->
i_original_picture_width
>
0
)
if
(
(
p_subpic
->
i_original_picture_height
>
0
)
&&
(
p_subpic
->
i_original_picture_width
>
0
)
)
{
p_spu
->
p_text
->
fmt_out
.
video
.
i_width
=
p_spu
->
p_text
->
fmt_out
.
video
.
i_visible_width
=
...
...
@@ -591,8 +591,8 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
i_scale_width
=
i_scale_width_orig
;
i_scale_height
=
i_scale_height_orig
;
if
(
p_subpic
->
i_original_picture_height
>
0
&&
p_subpic
->
i_original_picture_width
>
0
)
if
(
(
p_subpic
->
i_original_picture_height
>
0
)
&&
(
p_subpic
->
i_original_picture_width
>
0
)
)
{
i_scale_width
=
i_scale_width
*
p_fmt
->
i_width
/
p_subpic
->
i_original_picture_width
;
...
...
@@ -631,8 +631,9 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
}
/* Load the scaling module */
if
(
!
p_spu
->
p_scale
&&
(
i_scale_width
!=
1000
||
i_scale_height
!=
1000
)
)
if
(
!
p_spu
->
p_scale
&&
((
i_scale_width
>
0
)
||
(
i_scale_height
>
0
))
&&
((
i_scale_width
!=
1000
)
||
(
i_scale_height
!=
1000
))
)
{
p_spu
->
p_scale
=
vlc_object_create
(
p_spu
,
VLC_OBJECT_FILTER
);
vlc_object_attach
(
p_spu
->
p_scale
,
p_spu
);
...
...
@@ -734,7 +735,8 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
}
}
if
(
(
i_scale_width
!=
1000
||
i_scale_height
!=
1000
)
&&
if
(
((
i_scale_width
!=
1000
)
||
(
i_scale_height
!=
1000
))
&&
((
i_scale_width
>
0
)
||
(
i_scale_height
>
0
))
&&
p_spu
->
p_scale
&&
!
p_region
->
p_cache
)
{
picture_t
*
p_pic
;
...
...
@@ -776,7 +778,8 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
free
(
p_pic
);
}
}
if
(
(
i_scale_width
!=
1000
||
i_scale_height
!=
1000
)
&&
if
(
((
i_scale_width
!=
1000
)
||
(
i_scale_height
!=
1000
))
&&
((
i_scale_width
>
0
)
||
(
i_scale_height
>
0
))
&&
p_spu
->
p_scale
&&
p_region
->
p_cache
)
{
p_region
=
p_region
->
p_cache
;
...
...
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