// See if we need to regenerate
if ( *width != current_width || *height != current_height )
{
+ // Color the image
+ uint8_t y, u, v;
+ int i = 0;
+
// Allocate the image
size = *width * *height * 2;
image = mlt_pool_alloc( size );
mlt_properties_set_int( producer_props, "width", *width );
mlt_properties_set_int( producer_props, "height", *height );
- // Color the image
- uint8_t y, u, v;
- int i = 0;
RGB2YUV( color.r, color.g, color.b, y, u, v );
while ( i < size )