From c3c5052550c010732b5ca31acf563ea1e3349d88 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 8 Jun 2011 21:20:08 +0000 Subject: libhb: Enable multi-threaded decode in ffmpeg Enable both slice and frame based mutli-threaded decode in ffmpeg. Uses cpu_count/2 + 1 threads. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4034 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/sync.c') diff --git a/libhb/sync.c b/libhb/sync.c index eedaedbab..f4cb29f25 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -1119,7 +1119,7 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i ) c->channels = HB_INPUT_CH_LAYOUT_GET_DISCRETE_COUNT( w->audio->config.in.channel_layout ); c->sample_fmt = AV_SAMPLE_FMT_FLT; - if( hb_avcodec_open( c, codec ) < 0 ) + if( hb_avcodec_open( c, codec, 0 ) < 0 ) { hb_log( "sync: avcodec_open failed" ); return; -- cgit v1.2.3