- ghb_ui_update(ud, "video_codec", ghb_int64_value(vcodec));
- }
- gboolean decomb;
- gboolean vfr;
- decomb = ghb_settings_get_boolean(ud->settings, "decomb");
- vfr = ghb_settings_get_boolean(ud->settings, "variable_frame_rate");
- if (decomb && !vfr)
- {
- message = g_strdup_printf(
- "Decomb is intended to be used in conjunction\n"
- "with variable frame rate.\n\n"
- "Would you like me to enable VFR for you?");
- if (ghb_message_dialog(GTK_MESSAGE_WARNING, message, "No", "Yes"))
- {
- ghb_ui_update(ud, "variable_frame_rate", ghb_boolean_value(TRUE));
- }
- g_free(message);
- }
- return TRUE;
-}
-
-gboolean
-ghb_validate_container(signal_user_data_t *ud)
-{
- gint container;
- gchar *message;
-
- container = ghb_settings_combo_int(ud->settings, "container");
- if (container == HB_MUX_MP4)
- {
- const GValue *audio_list;
- gboolean httpopt;
-
- audio_list = ghb_settings_get_value(ud->settings, "audio_list");
- httpopt = ghb_settings_get_boolean(ud->settings, "http_optimize_mp4");
- if (httpopt && ghb_ac3_in_audio_list(audio_list))
- {
- message = g_strdup_printf(
- "AC3 audio in HTTP optimized MP4 is not supported.\n\n"
- "You should choose a different audio codec.\n"
- "If you continue, FAAC will be chosen for you.");
- if (!ghb_message_dialog(GTK_MESSAGE_WARNING, message, "Cancel", "Continue"))
- {
- g_free(message);
- return FALSE;
- }
- g_free(message);
-
- gint count, ii;
-
- count = ghb_array_len(audio_list);
- for (ii = 0; ii < count; ii++)
- {
- GValue *asettings;
-
- asettings = ghb_array_get_nth(audio_list, ii);
- gint acodec = ghb_settings_combo_int(asettings, "audio_codec");
- if (acodec == HB_ACODEC_AC3)
- {
- GValue *value;
- value = get_acodec_value(HB_ACODEC_FAAC);
- ghb_settings_take_value(asettings, "audio_codec", value);
- value = get_abitrate_value(160);
- ghb_settings_take_value(asettings, "audio_bitrate", value);
- }
- }
- }