mlt_properties_get_int( properties, "progressive" ) == 0 )
{
// Get the input image, width and height
- int size;
- uint8_t *image = mlt_properties_get_data( properties, "image", &size );
- uint8_t *ptr = image + owidth * bpp;
- memmove( ptr, image, size - owidth * bpp );
+ int size = owidth * oheight * bpp;
+ uint8_t *ptr = *image + owidth * bpp;
+ memmove( ptr, *image, size - owidth * bpp );
// Set the normalised field order
mlt_properties_set_int( properties, "top_field_first", 0 );