projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b522d
)
videotestsrc: fix segfault on negative horizontal-speed
author
Thijs Vermeir
<thijsvermeir@gmail.com>
Wed, 15 Sep 2010 13:19:04 +0000
(15:19 +0200)
committer
Thijs Vermeir
<thijsvermeir@gmail.com>
Wed, 15 Sep 2010 13:29:47 +0000
(15:29 +0200)
gst/videotestsrc/videotestsrc.c
patch
|
blob
|
history
diff --git
a/gst/videotestsrc/videotestsrc.c
b/gst/videotestsrc/videotestsrc.c
index
dcf0062
..
f7a8af6
100644
(file)
--- a/
gst/videotestsrc/videotestsrc.c
+++ b/
gst/videotestsrc/videotestsrc.c
@@
-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;