Skip to content

Commit ee8adcf

Browse files
committed
Fix alpha channel regression in movit.luma transition
Regression in 58132ea
1 parent c4d45fd commit ee8adcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/movit/transition_movit_luma.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ static int get_image(mlt_frame a_frame,
5757
mlt_position length = mlt_transition_get_length(transition);
5858
int reverse = mlt_properties_get_int(properties, "reverse");
5959
double mix = mlt_transition_get_progress(transition, a_frame);
60-
double inverse = 1.0 - mix;
6160
double softness = mlt_properties_anim_get_double(properties, "softness", position, length);
6261
int invert = mlt_properties_get_int(properties, "invert");
6362

@@ -66,6 +65,7 @@ static int get_image(mlt_frame a_frame,
6665
mix = 1.0 - pow(1.0 - mix, 2.0);
6766
else
6867
mix = pow(mix, 2.0);
68+
double inverse = 1.0 - mix;
6969

7070
if (c_frame) {
7171
// Set the Movit parameters.

0 commit comments

Comments
 (0)