From: Dan Dennedy Date: Tue, 8 Dec 2009 06:04:41 +0000 (-0800) Subject: Fix crash in composite-on-composite (kdenlive-1315). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b2737f448f85593413049ae846fa27e6ecc5bf35;p=mlt Fix crash in composite-on-composite (kdenlive-1315). --- diff --git a/src/modules/core/transition_composite.c b/src/modules/core/transition_composite.c index a88c1d6a..12b07103 100644 --- a/src/modules/core/transition_composite.c +++ b/src/modules/core/transition_composite.c @@ -859,6 +859,11 @@ static int get_b_frame_image( mlt_transition this, mlt_frame b_frame, uint8_t ** ret = mlt_frame_get_image( b_frame, image, &format, width, height, 1 ); + // composite_yuv uses geometry->sw to determine source stride, which + // should equal the image width if not using crop property. + if ( !mlt_properties_get( properties, "crop" ) ) + geometry->sw = *width; + // Set the frame back mlt_properties_set_int( b_props, "resize_alpha", resize_alpha );