mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
track-element: clamp interpolated keyframe values.
This commit is contained in:
parent
58bdd19cd4
commit
105d901c12
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue