From: Dan Dennedy Date: Sun, 10 Oct 2010 05:58:45 +0000 (-0700) Subject: Check for colorspace change on profile. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=db317b0481748e82e9d0a989772410375fe5259d;p=mlt Check for colorspace change on profile. --- diff --git a/src/modules/core/producer_loader.c b/src/modules/core/producer_loader.c index f97d2fd6..35229d22 100644 --- a/src/modules/core/producer_loader.c +++ b/src/modules/core/producer_loader.c @@ -98,11 +98,13 @@ static mlt_producer create_producer( mlt_profile profile, char *file ) } // Check if the producer changed the profile - xml does this. + // The consumer producer does not handle frame rate differences. if ( result && backup_profile->is_explicit && ( - profile->width != backup_profile->width || - profile->height != backup_profile->height || - profile->sample_aspect_num != backup_profile->sample_aspect_num || - profile->sample_aspect_den != backup_profile->sample_aspect_den ) ) + profile->width != backup_profile->width || + profile->height != backup_profile->height || + profile->sample_aspect_num != backup_profile->sample_aspect_num || + profile->sample_aspect_den != backup_profile->sample_aspect_den || + profile->colorspace != backup_profile->colorspace ) ) { // Restore the original profile attributes. profile->display_aspect_den = backup_profile->display_aspect_den;