grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_LAME, FALSE);
grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_VORBIS, FALSE);
- gboolean allow_ac3 = TRUE;
- allow_ac3 = (container != HB_MUX_OGM);
+ gboolean allow_dca = TRUE;
+ allow_dca = (container != HB_MUX_MP4);
- if (allow_ac3)
- {
- grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_AC3, FALSE);
+ grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_AC3, FALSE);
+ if (allow_dca)
grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_DCA, FALSE);
- }
else
- {
- grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_AC3, TRUE);
grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_DCA, TRUE);
- }
+
if (audio && audio->in.codec != HB_ACODEC_AC3)
{
grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_AC3, TRUE);
a_unsup = "Vorbis";
codec = HB_ACODEC_FAAC;
}
+ if (codec == HB_ACODEC_DCA)
+ {
+ a_unsup = "DTS";
+ codec = HB_ACODEC_FAAC;
+ }
}
else if (mux == HB_MUX_AVI)
{
audio->priv.fifo_in = hb_fifo_init( 32 );
audio->priv.fifo_raw = hb_fifo_init( FIFO_CPU_MULT * cpu_count );
audio->priv.fifo_sync = hb_fifo_init( 32 );
- audio->priv.fifo_out = hb_fifo_init( FIFO_CPU_MULT * cpu_count );
+ audio->priv.fifo_out = hb_fifo_init( 8 * FIFO_CPU_MULT * cpu_count );
/*