// Frame properties objects
mlt_properties frame_properties = MLT_FRAME_PROPERTIES( this );
mlt_properties first_frame_properties = MLT_FRAME_PROPERTIES( first_frame );
-
+
// image stride
- int size, xstride, ystride;
+ int size;
switch( *format ){
case mlt_image_yuv422:
size = *width * *height * 2;
- xstride = 2;
- ystride = 2 * *width;
break;
default:
fprintf(stderr, "Unsupported image format\n");
return -1;
}
- uint8_t *output = mlt_properties_get_data( producer_properties, "output_buffer", 0 );
+ uint8_t *output = mlt_properties_get_data( producer_properties, "output_buffer", NULL );
if( output == NULL )
{
output = mlt_pool_alloc( size );
uint8_t *first_image = mlt_properties_get_data( first_frame_properties, "image", NULL );
// which frames are buffered?
-
int error = 0;
+ mlt_properties_set_double( first_frame_properties, "consumer_aspect_ratio", mlt_properties_get_double(frame_properties, "consumer_aspect_ratio"));
if( first_image == NULL )
{
return error;
}
}
-
// Start with a base image
memcpy( output, first_image, size );
// Give the returned frame temporal identity
mlt_frame_set_position( *frame, mlt_producer_position( this ) );
-
}
return 0;