{
int error = mlt_frame_get_image( this, image, format, width, height, 1 );
- if ( error != 0 && *format == mlt_image_yuv422 )
+ if ( error == 0 && *format == mlt_image_yuv422 )
{
// Get the gamma value
double gamma = mlt_properties_get_double( mlt_frame_properties( this ), "gamma" );
}
return this;
}
-