Open ziyunfei opened 5 years ago
I reproduced this with git master when rescale=bilinear or bicubic but not neareset, which is the default for SDL.
BTW <profile description="" width="640" height="360"/>
will not work the way you think it does since you did not provide all of the profile values. The default profile is dv_pal, which is not square pixels! You probably want to set sample_aspect_num, sample_aspect_den, display_aspect_num, and display_aspect_den. A test with <profile description="" width="640" height="360" sample_aspect_num="1" sample_aspect_den="1" display_aspect_num="16" display_aspect_den="9"/>
did not provide a workaround for this bug.
The following diff works for me, but it needs more verification and testing since we have experienced crashes in this area before (ab626f7).
--- a/src/modules/plus/transition_affine.c
+++ b/src/modules/plus/transition_affine.c
@@ -593,8 +593,8 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
.b_alpha = mlt_properties_get_int( properties, "b_alpha" ),
// Affine boundaries
.minima = 0,
- .xmax = b_width - 1,
- .ymax = b_height - 1
+ .xmax = b_width,
+ .ymax = b_height
};
// Recalculate vars if alignment supplied.
Thanks, I fixed my issue by set rescale=nearest