From 8386d7f382f5467667025c2bca2667fa83373f5f Mon Sep 17 00:00:00 2001 From: Rodeo Date: Wed, 9 May 2012 12:32:10 +0000 Subject: decavcodec: merge double if to a single statement. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4656 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decavcodec.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libhb') diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 45239a29c..fca6c2f45 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1003,13 +1003,10 @@ static int decavcodecvInit( hb_work_object_t * w, hb_job_t * job ) pv->title = w->title; pv->list = hb_list_init(); - if( pv->job && pv->job->title ) + if( pv->job && pv->job->title && !pv->job->title->has_resolution_change && + w->codec_param != CODEC_ID_PRORES ) { - if( !pv->job->title->has_resolution_change && - w->codec_param != CODEC_ID_PRORES ) - { - pv->threads = HB_FFMPEG_THREADS_AUTO; - } + pv->threads = HB_FFMPEG_THREADS_AUTO; } if ( pv->title->opaque_priv ) { -- cgit v1.2.3