mlt_filter this = mlt_deque_pop_back( deque );
// Get the image from the frame
- if ( mlt_frame_get_image( frame, image, format, width, height, 1 ) == 0 )
+ int error = mlt_frame_get_image( frame, image, format, width, height, 1 );
+
+ // Get the image from the frame
+ if ( error == 0 && *format == mlt_image_yuv422 )
{
if ( this != NULL )
{
}
}
- return 0;
+ return error;
}
/** Filter processing.