Hi. Below is a patch to prevent a possible division by zero crash happening in mlt_frame get_waveform.
regards jb --------------------------------------------------------------------------- diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 36cba04..132a24f 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -821,6 +821,9 @@ unsigned char *mlt_frame_get_waveform( mlt_frame self, int w, int h ) // Make an 8-bit buffer large enough to hold rendering int size = w * h; + if ( size <= 0 ) + return NULL; + unsigned char *bitmap = ( unsigned char* )mlt_pool_alloc( size ); if ( bitmap != NULL ) memset( bitmap, 0, size ); ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel