Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
ef021421
Commit
ef021421
authored
Sep 15, 2010
by
Thijs Vermeir
Browse files
videotestsrc: fix segfault on negative horizontal-speed
parent
75b522da
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/videotestsrc/videotestsrc.c
View file @
ef021421
...
...
@@ -608,6 +608,8 @@ videotestsrc_setup_paintinfo (GstVideoTestSrc * v, paintinfo * p, int w, int h)
p
->
tmpline2
=
v
->
tmpline2
;
p
->
tmpline_u8
=
v
->
tmpline_u8
;
p
->
x_offset
=
(
v
->
horizontal_speed
*
v
->
n_frames
)
%
p
->
width
;
if
(
p
->
x_offset
<
0
)
p
->
x_offset
+=
p
->
width
;
a
=
(
v
->
foreground_color
>>
24
)
&
0xff
;
r
=
(
v
->
foreground_color
>>
16
)
&
0xff
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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