projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58bdd19
)
track-element: clamp interpolated keyframe values.
author
Mathieu Duponchelle
<mduponchelle1@gmail.com>
Thu, 9 Jan 2014 17:13:00 +0000
(18:13 +0100)
committer
Mathieu Duponchelle
<mduponchelle1@gmail.com>
Fri, 10 Jan 2014 17:40:37 +0000
(18:40 +0100)
ges/ges-track-element.c
patch
|
blob
|
history
diff --git
a/ges/ges-track-element.c
b/ges/ges-track-element.c
index ee3ba4c83d43592e74c1124ef17aca95a1fee420..2f923a6dbfebdc9f03a0ef2eea161f0118a8b0e2 100644
(file)
--- a/
ges/ges-track-element.c
+++ b/
ges/ges-track-element.c
@@
-302,6
+302,8
@@
interpolate_values_for_position (GstTimedValue * first_value,
first_value->value - ((float) (first_value->timestamp -
position) / (float) interval) * diff;
+ value_at_pos = CLAMP (value_at_pos, 0.0, 1.0);
+
return value_at_pos;
}