int mlt_frame_is_test_card( mlt_frame this )
{
- return mlt_properties_get_int( mlt_frame_properties( this ), "test_image" );
+ return mlt_deque_count( this->stack_image ) == 0 || mlt_properties_get_int( mlt_frame_properties( this ), "test_image" );
}
/** Check if we have a way to derive something than test audio.
mlt_properties_set_int( properties, "width", *width );
mlt_properties_set_int( properties, "height", *height );
+ mlt_properties_set_int( properties, "aspect_ratio", 1 );
switch( *format )
{
int active_width = 2 * iwidth;
int inactive_width = out_x_range - in_x_range;
+ uint8_t *p = NULL;
+ uint8_t *end = NULL;
// Loop for the entirety of our output height.
while ( iheight -- )
}
// We're in the input range for this row.
- memcpy( out_ptr, in_middle + in_line, active_width );
- out_ptr += active_width;
+ p = in_middle + in_line;
+ end = out_ptr + active_width;
+ while ( out_ptr != end )
+ {
+ *out_ptr ++ = *p ++;
+ *out_ptr ++ = *p ++;
+ }
// Fill the outer part with black
elements = inactive_width;