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
2c975948
Commit
2c975948
authored
Feb 07, 2007
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash on messed up aspect ratios.
parent
3ab9ffb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+6
-1
No files found.
src/video_output/vout_intf.c
View file @
2c975948
...
@@ -858,7 +858,12 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
...
@@ -858,7 +858,12 @@ static void InitWindowSize( vout_thread_t *p_vout, unsigned *pi_width,
goto
initwsize_end
;
goto
initwsize_end
;
}
}
if
(
p_vout
->
fmt_in
.
i_sar_num
>=
p_vout
->
fmt_in
.
i_sar_den
)
if
(
p_vout
->
fmt_in
.
i_sar_num
==
0
||
p_vout
->
fmt_in
.
i_sar_den
==
0
)
{
msg_Warn
(
p_vout
,
"fucked up aspect"
);
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
/
FP_FACTOR
);
*
pi_height
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_height
*
ll_zoom
/
FP_FACTOR
);
}
else
if
(
p_vout
->
fmt_in
.
i_sar_num
>=
p_vout
->
fmt_in
.
i_sar_den
)
{
{
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
*
*
pi_width
=
(
int
)(
p_vout
->
fmt_in
.
i_visible_width
*
ll_zoom
*
p_vout
->
fmt_in
.
i_sar_num
/
p_vout
->
fmt_in
.
i_sar_den
/
FP_FACTOR
);
p_vout
->
fmt_in
.
i_sar_num
/
p_vout
->
fmt_in
.
i_sar_den
/
FP_FACTOR
);
...
...
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