]> git.sesse.net Git - mlt/commitdiff
Fix underlinking libm by removing math function.
authorDan Dennedy <dan@dennedy.org>
Wed, 9 Dec 2009 03:55:15 +0000 (19:55 -0800)
committerDan Dennedy <dan@dennedy.org>
Wed, 9 Dec 2009 03:55:15 +0000 (19:55 -0800)
configure
src/framework/mlt.h
src/modules/avformat/producer_avformat.c

index ff9d2e2d8554a91c19f94208a370717e5e661293..d957a8dbaa7f8047bc387093441f66e02c103015 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-export version=0.4.8
+export version=0.4.9
 export soversion=2
 
 show_help()
index 3711d2edef8d349678b858621d2d72df73677edc..0b211d73329873e9a5b995a725c32dd162f2d00d 100644 (file)
@@ -23,8 +23,8 @@
 #ifndef _MLT_H_
 #define _MLT_H_
 
-#define LIBMLT_VERSION_INT ((0<<16)+(4<<8)+8)
-#define LIBMLT_VERSION     0.4.8
+#define LIBMLT_VERSION_INT ((0<<16)+(4<<8)+9)
+#define LIBMLT_VERSION     0.4.9
 
 #ifdef __cplusplus
 extern "C"
index 2d0be647bc3c5fe446c602d8cf597cd945eb70ee..78b3906029d8f36ae446945890b4fdaf8cc8c447 100644 (file)
@@ -1422,7 +1422,7 @@ static int decode_audio( producer_avformat this, int *ignore, AVPacket *pkt, int
                {
                        // Figure out how many samples will be needed after resampling
                        int convert_samples = data_size / codec_context->channels / ( av_get_bits_per_sample_format( codec_context->sample_fmt ) / 8 );
-                       int samples_needed = lrint( this->resample_factor * convert_samples );
+                       int samples_needed = this->resample_factor * convert_samples + 1;
                        
                        // Resize audio buffer to prevent overflow
                        if ( audio_used * channels + samples_needed > this->audio_buffer_size[ index ] )