Build modification to ffmpeg/avformat
[melted] / src / modules / core / transition_composite.c
index aafdd17..5c3e7af 100644 (file)
@@ -500,6 +500,7 @@ static int composite_yuv( uint8_t *p_dest, int width_dest, int height_dest, uint
        {
                p_src += 2;
                width_src --;
+               full_alpha ++;
        }
 
        // now do the compositing only to cropped extents
@@ -763,7 +764,7 @@ 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 );
 
-       return ret;
+       return ret && image != NULL;
 }