| 352 | } |
| 353 | |
| 354 | int ghb_select_fallback(GhbValue *settings, int acodec) |
| 355 | { |
| 356 | gint fallback = 0; |
| 357 | |
| 358 | if (acodec & HB_ACODEC_PASS_FLAG) |
| 359 | { |
| 360 | fallback = hb_audio_encoder_get_fallback_for_passthru(acodec); |
| 361 | if (fallback != 0) |
| 362 | { |
| 363 | return fallback; |
| 364 | } |
| 365 | } |
| 366 | const char *mux_id; |
| 367 | const hb_container_t *mux; |
| 368 | |
| 369 | mux_id = ghb_dict_get_string(settings, "FileFormat"); |
| 370 | mux = ghb_lookup_container_by_name(mux_id); |
| 371 | |
| 372 | fallback = ghb_settings_audio_encoder_codec(settings, |
| 373 | "AudioEncoderFallback"); |
| 374 | return hb_autopassthru_get_encoder(acodec, 0, fallback, mux->format); |
| 375 | } |
| 376 | |
| 377 | static char * get_quality_string(int codec, gdouble quality) |
| 378 | { |
no test coverage detected