]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/filter_affine.c
remove usage of normalised_width and _height properties from services
[mlt] / src / modules / plus / filter_affine.c
index 0b55ff0464404ff39ccc6767150ba6d9449686a1..a21b3d24b3ba9e761cb16e204480b1acc91734ca 100644 (file)
@@ -95,11 +95,12 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                        mlt_service_unlock( MLT_FILTER_SERVICE( filter ) );
                        mlt_transition_process( transition, a_frame, this );
 
-                       if (mlt_properties_get_int( properties, "use_normalised" ))
+                       if ( mlt_properties_get_int( properties, "use_normalised" ) )
                        {
-                               // Use the normalised width & height from the a_frame
-                               *width = mlt_properties_get_int( MLT_FRAME_PROPERTIES( a_frame ), "normalised_width" );
-                               *height = mlt_properties_get_int( MLT_FRAME_PROPERTIES( a_frame ), "normalised_height" );
+                               // Use the normalised width & height
+                               mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( filter ) );
+                               *width = profile->width;
+                               *height = profile->height;
                        }
                        
                        mlt_frame_get_image( a_frame, image, format, width, height, writable );