Skip to content

Commit 70b3ce1

Browse files
committedNov 14, 2024
extend fix 2902592 for luma wipe resource
1 parent 65c2f02 commit 70b3ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/modules/core/transition_luma.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,12 @@ static void luma_composite(mlt_frame a_frame,
309309
mix_a = calculate_mix(1.0f - value, alpha_dest ? *alpha_dest : 255);
310310
mix_b = calculate_mix(value, alpha_src ? *alpha_src : 255);
311311
if (invert && alpha_src) {
312-
float mix2 = mix_b + mix_a - mix_b * mix_a;
312+
float mix2 = mix_b + mix_a;
313313
*alpha_src = 255 * mix2;
314314
if (mix2 != 0.f)
315315
mix_b /= mix2;
316316
} else if (!invert && alpha_dest) {
317-
float mix2 = mix_b + mix_a - mix_b * mix_a;
317+
float mix2 = mix_b + mix_a;
318318
*alpha_dest = 255 * mix2;
319319
if (mix2 != 0.f)
320320
mix_b /= mix2;

0 commit comments

Comments
 (0)
Failed to load comments.