track-element: clamp interpolated keyframe values.

This commit is contained in:
Mathieu Duponchelle 2014-01-09 18:13:00 +01:00
parent 58bdd19cd4
commit 105d901c12

View file

@ -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;
}