MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_select_fallback

Function ghb_select_fallback

gtk/src/audiohandler.c:354–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354int 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
377static char * get_quality_string(int codec, gdouble quality)
378{

Callers 4

ghb_grey_combo_optionsFunction · 0.85
audio_def_set_limitsFunction · 0.85

Tested by

no test coverage detected