]> git.sesse.net Git - mlt/commitdiff
Fix image skew bug in composite (kdenlive-1923).
authorDan Dennedy <dan@dennedy.org>
Wed, 9 Feb 2011 04:52:01 +0000 (20:52 -0800)
committerDan Dennedy <dan@dennedy.org>
Wed, 9 Feb 2011 04:52:01 +0000 (20:52 -0800)
src/modules/core/transition_composite.c

index 14e00575519a52f53c2bdc6c9c8ba34bae5088b1..c8f92df639d465b6528785423bc14fb97612ea96 100644 (file)
@@ -853,6 +853,7 @@ static int get_b_frame_image( mlt_transition this, mlt_frame b_frame, uint8_t **
 
        // Adjust to consumer scale
        *width = rint( geometry->sw * *width / geometry->nw );
+       *width -= *width % 2; // coerce to even width for yuv422
        *height = rint( geometry->sh * *height / geometry->nh );
 // fprintf(stderr, "%s: scaled %dx%d norm %dx%d resize %dx%d\n", __FILE__,
 // geometry->sw, geometry->sh, geometry->nw, geometry->nh, *width, *height);