]> git.sesse.net Git - mlt/blobdiff - src/modules/core/producer_noise.c
Add a refresh property to videostab2 filter.
[mlt] / src / modules / core / producer_noise.c
index 4b9bf21f2e3dbad90a8c1d4482876fe539952ce5..0e39eb7a3097e2d4d78f190f7665b3bc0b3c6993 100644 (file)
@@ -112,6 +112,7 @@ static int producer_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_form
        *samples = *samples <= 0 ? 1920 : *samples;
        *channels = *channels <= 0 ? 2 : *channels;
        *frequency = *frequency <= 0 ? 48000 : *frequency;
+       *format = mlt_audio_s16;
 
        // Calculate the size of the buffer
        size = *samples * *channels * sizeof( int16_t );
@@ -145,7 +146,8 @@ static int producer_get_frame( mlt_producer this, mlt_frame_ptr frame, int index
                mlt_properties properties = MLT_FRAME_PROPERTIES( *frame );
 
                // Aspect ratio is whatever it needs to be
-               mlt_properties_set_double( properties, "aspect_ratio", mlt_properties_get_double( MLT_PRODUCER_PROPERTIES( this ), "aspect_ratio" ) );
+               mlt_profile profile = mlt_service_profile( MLT_PRODUCER_SERVICE( this ) );
+               mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( profile ) );
 
                // Set producer-specific frame properties
                mlt_properties_set_int( properties, "progressive", 1 );