summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-06-14 01:24:34 +0000
committerjstebbins <[email protected]>2011-06-14 01:24:34 +0000
commitd4b5c3e9ea690220fb7e959aed0c68a2e73b0316 (patch)
tree824b35f6b87a1bab96de73f5bcb0eccf43a5e213 /libhb/sync.c
parentb3b9ef3add434b865c3deed92cb9e04a8703f389 (diff)
Add DTS-HD passthru \o/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4055 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 09e88538c..b754a54cc 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -1033,7 +1033,8 @@ static int syncAudioWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
* Or in the case of DCA, skip some frames from the
* other streams.
*/
- if( w->audio->config.out.codec == HB_ACODEC_DCA_PASS )
+ if( w->audio->config.out.codec == HB_ACODEC_DCA_PASS ||
+ w->audio->config.out.codec == HB_ACODEC_DCA_HD_PASS )
{
hb_log( "sync: audio gap %d ms. Skipping frames. Audio 0x%x"
" start %"PRId64", next %"PRId64,
@@ -1093,8 +1094,7 @@ static void InitAudio( hb_job_t * job, hb_sync_common_t * common, int i )
w->audio = hb_list_item( title->list_audio, i );
w->fifo_in = w->audio->priv.fifo_raw;
- if( w->audio->config.out.codec == HB_ACODEC_AC3_PASS ||
- w->audio->config.out.codec == HB_ACODEC_DCA_PASS )
+ if ( w->audio->config.out.codec & HB_ACODEC_PASS_FLAG )
{
w->fifo_out = w->audio->priv.fifo_out;
}