static int producer_collect_info( producer_libdv this )
{
int valid = 0;
+ // IRRIGATE ME
uint8_t *dv_data = malloc( frame_size_625_50 );
if ( dv_data != NULL )
if ( *format == mlt_image_yuv422 )
{
// Allocate an image
- uint8_t *image = malloc( *width * *height * 2 );
+ // IRRIGATE ME
+ uint8_t *image = malloc( *width * ( *height + 1 ) * 2 );
// Pass to properties for clean up
- mlt_properties_set_data( properties, "image", image, *width * *height * 2, free, NULL );
+ mlt_properties_set_data( properties, "image", image, *width * ( *height + 1 ) * 2, free, NULL );
// Decode the image
pitches[ 0 ] = *width * 2;
else if ( *format == mlt_image_rgb24 )
{
// Allocate an image
- uint8_t *image = malloc( *width * *height * 3 );
+ // IRRIGATE ME
+ uint8_t *image = malloc( *width * ( *height + 1 ) * 3 );
// Pass to properties for clean up
- mlt_properties_set_data( properties, "image", image, *width * *height * 3, free, NULL );
+ mlt_properties_set_data( properties, "image", image, *width * ( *height + 1 ) * 3, free, NULL );
// Decode the frame
pitches[ 0 ] = 720 * 3;