git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@883
d19143bc-622f-0410-bfdd-
b5b2a6649095
*height = dv_data[ 3 ] & 0x80 ? 576 : 480;
// Extract an image of the format requested
- if ( *format == mlt_image_yuv422 )
+ if ( *format == mlt_image_yuv422 || *format == mlt_image_yuv420p )
{
// Allocate an image
uint8_t *image = mlt_pool_alloc( *width * ( *height + 1 ) * 2 );
// Assign result
*buffer = image;
+ *format = mlt_image_yuv422;
}
- else if ( *format == mlt_image_rgb24 )
+ else
{
// Allocate an image
uint8_t *image = mlt_pool_alloc( *width * ( *height + 1 ) * 3 );
// Assign result
*buffer = image;
+ *format = mlt_image_rgb24;
}
// Return the decoder