diff options
author | maurj <[email protected]> | 2007-05-06 21:32:01 +0000 |
---|---|---|
committer | maurj <[email protected]> | 2007-05-06 21:32:01 +0000 |
commit | 1b1c0f9ceaa8b712d5b43056276d7d2f83ca395b (patch) | |
tree | c8a8828362ee7b8d595b41007683b5540163d161 /libhb/scan.c | |
parent | 51f567d40d8706914b4bfca9670f2a8e609aebea (diff) |
Updated the input channel layouts to store the source LFE information as well as the non-LFE layout. This is so muxavi.c can output the correct channel count for AC3 passthru for all AC3 sources. Updated Controller.mm, scan.c and work.c to use these revised layouts.
Added a new property to the work object, to remember the source audio codec for audio work objects. This enables encfaac to detect an 6-channel AC3 source to apply the QuickTime 6-channel audio mapping (as opposed to a DTS source, which doesn't need it).
Fixed the Dolby Pro Logic I/II downmix mappings in libdca and updated the libdca patch. Uploaded a new set of pre-built darwin contribs (0014) with this patch applied.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@570 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index a93d3015a..45da1b7d1 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -506,11 +506,7 @@ static void LookForAC3AndDCA( hb_title_t * title, hb_buffer_t * b ) break; /* 3F/2R input */ case A52_3F2R: - if (flags & A52_LFE) { - audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2RLFE; - } else { - audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2R; - } + audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2R; break; /* 3F/1R input */ case A52_3F1R: @@ -530,6 +526,12 @@ static void LookForAC3AndDCA( hb_title_t * title, hb_buffer_t * b ) default: audio->input_channel_layout = HB_INPUT_CH_LAYOUT_STEREO; } + + /* add in our own LFE flag if the source has LFE */ + if (flags & A52_LFE) + { + audio->input_channel_layout = audio->input_channel_layout | HB_INPUT_CH_LAYOUT_HAS_LFE; + } /* store the AC3 flags for future reference This enables us to find out if we had a stereo or Dolby source later on */ @@ -582,11 +584,7 @@ static void LookForAC3AndDCA( hb_title_t * title, hb_buffer_t * b ) break; /* 3F/2R input */ case DCA_3F2R: - if (flags & DCA_LFE) { - audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2RLFE; - } else { - audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2R; - } + audio->input_channel_layout = HB_INPUT_CH_LAYOUT_3F2R; break; /* 3F/1R input */ case DCA_3F1R: @@ -610,6 +608,12 @@ static void LookForAC3AndDCA( hb_title_t * title, hb_buffer_t * b ) audio->input_channel_layout = HB_INPUT_CH_LAYOUT_STEREO; } + /* add in our own LFE flag if the source has LFE */ + if (flags & DCA_LFE) + { + audio->input_channel_layout = audio->input_channel_layout | HB_INPUT_CH_LAYOUT_HAS_LFE; + } + /* store the DCA flags for future reference This enables us to find out if we had a stereo or Dolby source later on */ audio->config.dca.dcaflags = flags; |