Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
08de6996
Commit
08de6996
authored
Apr 29, 2021
by
Lyndon Brown
Committed by
Jean-Baptiste Kempf
May 10, 2021
Browse files
audiobargraph_v: catch negative vfilter x/y
... as done in logo.
parent
5fc1af11
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/spu/audiobargraph_v.c
View file @
08de6996
...
...
@@ -455,6 +455,16 @@ static picture_t *FilterVideo(filter_t *p_filter, picture_t *p_src)
p_sys
->
i_pos_x
=
(
i_dst_w
-
p_fmt
->
i_visible_width
)
/
2
;
}
if
(
p_sys
->
i_pos_x
<
0
||
p_sys
->
i_pos_y
<
0
)
{
msg_Warn
(
p_filter
,
"bargraph(%ix%i) doesn't fit into video(%ix%i)"
,
p_fmt
->
i_visible_width
,
p_fmt
->
i_visible_height
,
i_dst_w
,
i_dst_h
);
p_sys
->
i_pos_x
=
(
p_sys
->
i_pos_x
>
0
)
?
p_sys
->
i_pos_x
:
0
;
p_sys
->
i_pos_y
=
(
p_sys
->
i_pos_y
>
0
)
?
p_sys
->
i_pos_y
:
0
;
}
/* */
const
int
i_alpha
=
p_BarGraph
->
i_alpha
;
if
(
filter_ConfigureBlend
(
p_sys
->
p_blend
,
i_dst_w
,
i_dst_h
,
p_fmt
)
||
...
...
Write
Preview
Supports
Markdown
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