- mlt_properties_set_data( properties, "image", image, size, mlt_pool_release, NULL );
- if ( alpha )
- mlt_properties_set_data( properties, "alpha", alpha, width * height, mlt_pool_release, NULL );
+ mlt_frame_set_image( frame, image, size, mlt_pool_release );
+ if ( alpha && ( *format == mlt_image_rgb24a || *format == mlt_image_opengl ) )
+ mlt_frame_set_alpha( frame, alpha, alpha_size, mlt_pool_release );