]> git.sesse.net Git - mlt/commitdiff
Apply sox 14.3 compatibility patch from Fathi Boudra.
authorDan Dennedy <dan@dennedy.org>
Mon, 13 Jul 2009 17:45:38 +0000 (10:45 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 13 Jul 2009 17:45:38 +0000 (10:45 -0700)
Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/modules/sox/filter_sox.c

index 66cc54d3c50e2817b49ba8190fce1fb75ffc588d..d2ef2d24f6dbbaf78e676c0b927dd0097b1d86aa 100644 (file)
@@ -181,6 +181,9 @@ static int create_effect( mlt_filter this, char *value, int count, int channel,
 
 static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format *format, int *frequency, int *channels, int *samples )
 {
+#if (ST_LIB_VERSION_CODE >= ST_LIB_VERSION(14,3,0))
+       SOX_SAMPLE_LOCALS;
+#endif
        // Get the properties of the frame
        mlt_properties properties = MLT_FRAME_PROPERTIES( frame );