- rename mode "matte" to "luma"
- fix possible crash
svn path=/trunk/kdenlive/; revision=5440
<description>Keyframable vector based rotoscoping</description>
<author>Till Theato</author>
<description>Keyframable vector based rotoscoping</description>
<author>Till Theato</author>
- <parameter type="list" name="mode" default="alpha" paramlist="alpha,matte,rgb">
- <paramlistdisplay>Alpha,Matte,RGB</paramlistdisplay>
+ <parameter type="list" name="mode" default="alpha" paramlist="alpha,luma,rgb">
+ <paramlistdisplay>Alpha,Luma,RGB</paramlistdisplay>
<name>Mode</name>
</parameter>
<name>Mode</name>
</parameter>
QList <BPoint> p;
qreal relPos = (pos - keyframe1) / (qreal)(keyframe2 - keyframe1 + 1);
QList <BPoint> p;
qreal relPos = (pos - keyframe1) / (qreal)(keyframe2 - keyframe1 + 1);
- for (int i = 0; i < p1.count(); ++i) {
+ int count = qMin(p1.count(), p2.count());
+ for (int i = 0; i < count; ++i) {
BPoint bp;
for (int j = 0; j < 3; ++j) {
if (p1.at(i)[j] != p2.at(i)[j])
BPoint bp;
for (int j = 0; j < 3; ++j) {
if (p1.at(i)[j] != p2.at(i)[j])