summaryrefslogtreecommitdiffstats
path: root/libhb/deca52.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-06-18 21:11:48 +0000
committerRodeo <[email protected]>2012-06-18 21:11:48 +0000
commitfc3e44b2ba28772fa559d39bd57b7a595a83292f (patch)
tree738449c393dcd8da6edf6881e53353b35e5c47b8 /libhb/deca52.c
parent510564b19b5a6d7ac77091cd02ec9c557941399f (diff)
libhb: drop HB_INPUT_CH_LAYOUT_*
AV_CH_LAYOUT_* works for us, and as its usage becomes more widespread in libhb, translating between the two formats gets increasingly tedious. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4754 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r--libhb/deca52.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c
index d832002a8..22bfb55da 100644
--- a/libhb/deca52.c
+++ b/libhb/deca52.c
@@ -108,11 +108,11 @@ static int deca52Init( hb_work_object_t * w, hb_job_t * job )
switch( audio->config.out.mixdown )
{
case HB_AMIXDOWN_6CH:
- pv->flags_out = ( A52_3F2R | A52_LFE );
+ pv->flags_out = (A52_3F2R|A52_LFE);
break;
case HB_AMIXDOWN_DOLBYPLII:
- pv->flags_out = ( A52_DOLBY | A52_USE_DPLII );
+ pv->flags_out = (A52_DOLBY|A52_USE_DPLII);
break;
case HB_AMIXDOWN_DOLBY:
@@ -445,43 +445,43 @@ static int deca52BSInfo( hb_work_object_t *w, const hb_buffer_t *b,
case A52_MONO:
case A52_CHANNEL1:
case A52_CHANNEL2:
- info->channel_layout = HB_INPUT_CH_LAYOUT_MONO;
+ info->channel_layout = AV_CH_LAYOUT_MONO;
break;
/* stereo input */
case A52_CHANNEL:
case A52_STEREO:
- info->channel_layout = HB_INPUT_CH_LAYOUT_STEREO;
+ info->channel_layout = AV_CH_LAYOUT_STEREO;
break;
/* Dolby Pro Logic (a.k.a. Dolby Surround), 4.0 channels (matrix-encoded) */
case A52_DOLBY:
- info->channel_layout = HB_INPUT_CH_LAYOUT_DOLBY;
+ info->channel_layout = AV_CH_LAYOUT_STEREO_DOWNMIX;
break;
/* 3F/2R input */
case A52_3F2R:
- info->channel_layout = HB_INPUT_CH_LAYOUT_3F2R;
+ info->channel_layout = AV_CH_LAYOUT_5POINT0;
break;
/* 3F/1R input */
case A52_3F1R:
- info->channel_layout = HB_INPUT_CH_LAYOUT_3F1R;
+ info->channel_layout = AV_CH_LAYOUT_4POINT0;
break;
/* other inputs */
case A52_3F:
- info->channel_layout = HB_INPUT_CH_LAYOUT_3F;
+ info->channel_layout = AV_CH_LAYOUT_SURROUND;
break;
case A52_2F1R:
- info->channel_layout = HB_INPUT_CH_LAYOUT_2F1R;
+ info->channel_layout = AV_CH_LAYOUT_2_1;
break;
case A52_2F2R:
- info->channel_layout = HB_INPUT_CH_LAYOUT_2F2R;
+ info->channel_layout = AV_CH_LAYOUT_2_2;
break;
/* unknown */
default:
- info->channel_layout = HB_INPUT_CH_LAYOUT_STEREO;
+ info->channel_layout = AV_CH_LAYOUT_STEREO;
}
if (flags & A52_LFE)
{
- info->channel_layout |= HB_INPUT_CH_LAYOUT_HAS_LFE;
+ info->channel_layout |= AV_CH_LOW_FREQUENCY;
}
info->channel_map = &hb_ac3_chan_map;