]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_resize.c
ppm ffmpeg
[mlt] / src / modules / core / filter_resize.c
index dab7fdfc04d0141f91dbe017ecf2f60c304a820b..537ce505aedfb64e9604b43e5017f04152cbe227 100644 (file)
@@ -58,13 +58,16 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
 /** Constructor for the filter.
 */
 
-mlt_filter filter_resize_init( void *arg )
+mlt_filter filter_resize_init( char *arg )
 {
        mlt_filter this = calloc( sizeof( struct mlt_filter_s ), 1 );
        if ( mlt_filter_init( this, this ) == 0 )
        {
                this->process = filter_process;
-               mlt_properties_set( mlt_filter_properties( this ), "scale", "off" );
+               if ( arg != NULL )
+                       mlt_properties_set( mlt_filter_properties( this ), "scale", arg );
+               else
+                       mlt_properties_set( mlt_filter_properties( this ), "scale", "off" );
        }
        return this;
 }