]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/transition_affine.c
remove usage of normalised_width and _height properties from services
[mlt] / src / modules / plus / transition_affine.c
index 50eb47cac701fb2e6858314da60530d6bfd5d338..80ae6e7cf86c9c876b2dea40db5dbd4185347155 100644 (file)
@@ -393,8 +393,9 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
        }
 
        // Obtain the normalised width and height from the a_frame
-       int normalised_width = mlt_properties_get_int( a_props, "normalised_width" );
-       int normalised_height = mlt_properties_get_int( a_props, "normalised_height" );
+       mlt_profile profile = mlt_service_profile( MLT_TRANSITION_SERVICE( transition ) );
+       int normalised_width = profile->width;
+       int normalised_height = profile->height;
 
        double consumer_ar = mlt_properties_get_double( a_props, "consumer_aspect_ratio" );