diff options
-rw-r--r-- | gtk/src/hb-backend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index e643dea44..8a90d4ece 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1577,15 +1577,15 @@ ghb_grey_combo_options(GtkBuilder *builder) grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_DCA_HD_PASS, TRUE); } - if (aconfig && aconfig->in.codec != HB_ACODEC_AC3) + if (aconfig && (aconfig->in.codec & HB_ACODEC_MASK) != HB_ACODEC_AC3) { grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_AC3_PASS, TRUE); } - if (aconfig && aconfig->in.codec != HB_ACODEC_DCA) + if (aconfig && (aconfig->in.codec & HB_ACODEC_MASK) != HB_ACODEC_DCA) { grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_DCA_PASS, TRUE); } - if (aconfig && aconfig->in.codec != HB_ACODEC_DCA_HD) + if (aconfig && (aconfig->in.codec & HB_ACODEC_MASK) != HB_ACODEC_DCA_HD) { grey_combo_box_item(builder, "AudioEncoder", HB_ACODEC_DCA_HD_PASS, TRUE); } @@ -4257,7 +4257,7 @@ ghb_validate_audio(signal_user_data_t *ud) } g_free(message); if ((codec & HB_ACODEC_AC3) || - aconfig->in.codec == HB_ACODEC_DCA) + (aconfig->in.codec & HB_ACODEC_MASK) == HB_ACODEC_DCA) { codec = HB_ACODEC_AC3; } |