]> git.sesse.net Git - mlt/commitdiff
producer_avformat.c: remove multi-threaded audio decoding option. It does not provide...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 4 Jun 2008 08:24:12 +0000 (08:24 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 4 Jun 2008 08:24:12 +0000 (08:24 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1135 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/producer_avformat.c

index 5103798108981b7d5df5082f929bbec7e8f1c831..8e59b2dadec7b96877344ac25078b4358f618033 100644 (file)
@@ -1041,16 +1041,6 @@ static void producer_set_up_audio( mlt_producer this, mlt_frame frame )
                // Initialise the codec if necessary
                if ( codec == NULL )
                {
-                       // Initialise multi-threading 
-                       int thread_count = mlt_properties_get_int( properties, "threads" );
-                       if ( thread_count == 0 && getenv( "MLT_AVFORMAT_THREADS" ) )
-                               thread_count = atoi( getenv( "MLT_AVFORMAT_THREADS" ) );
-                       if ( thread_count > 1 )
-                       {
-                               avcodec_thread_init( codec_context, thread_count );
-                               codec_context->thread_count = thread_count;
-                       }
-
                        // Find the codec
                        codec = avcodec_find_decoder( codec_context->codec_id );