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

Function add_audio

test/test.c:5005–5019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5003}
5004
5005static int add_audio(hb_value_array_t *list, hb_title_t *title, int track)
5006{
5007 // Check that the track exists
5008 if (hb_list_item(title->list_audio, track-1) == NULL)
5009 {
5010 fprintf(stderr, "Warning: Could not find audio track %d, skipped\n",
5011 track);
5012 return -1;
5013 }
5014 hb_dict_t *audio_dict = hb_dict_init();
5015 hb_dict_set(audio_dict, "Track", hb_value_int(track-1));
5016 hb_value_array_append(list, audio_dict);
5017
5018 return 0;
5019}
5020
5021static hb_dict_t*
5022PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)

Callers 1

PrepareJobFunction · 0.70

Calls 5

hb_list_itemFunction · 0.85
hb_dict_initFunction · 0.85
hb_dict_setFunction · 0.85
hb_value_intFunction · 0.85
hb_value_array_appendFunction · 0.85

Tested by

no test coverage detected