Was setting lame as fallback when flac24 fallback was set.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5154
b64f7644-9d1e-0410-96f1-
a4d463321fa5
int ghb_select_fallback( GValue *settings, int mux, int acodec )
{
- gint mask;
gint fallback = 0;
switch ( acodec )
default:
{
fallback = ghb_settings_combo_int(settings, "AudioEncoderFallback");
+ return hb_autopassthru_get_encoder(acodec, 0, fallback, mux);
}
}
- if ( mux == HB_MUX_MP4 )
- {
- mask = HB_ACODEC_LAME |
- HB_ACODEC_FFAAC |
- HB_ACODEC_FAAC |
- HB_ACODEC_AC3;
- }
- if ( mux == HB_MUX_MKV )
- {
- mask =
- HB_ACODEC_FAAC |
- HB_ACODEC_LAME |
- HB_ACODEC_VORBIS |
- HB_ACODEC_AC3 |
- HB_ACODEC_FFAAC |
- HB_ACODEC_FFFLAC;
- }
- if (!(fallback & mask ))
- {
- fallback = HB_ACODEC_LAME;
- }
- return fallback;
}
void