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

Function lookup_lang_code

libhb/muxavformat.c:175–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static char* lookup_lang_code(int mux, char *iso639_2)
176{
177 iso639_lang_t *lang;
178 char *out = NULL;
179
180 switch (mux)
181 {
182 case HB_MUX_AV_MP4:
183 case HB_MUX_AV_MOV:
184 out = iso639_2;
185 break;
186 case HB_MUX_AV_MKV:
187 case HB_MUX_AV_WEBM: // webm is a subset of mkv
188 // MKV lang codes should be ISO-639-2B if it exists,
189 // else ISO-639-2
190 lang = lang_for_code2( iso639_2 );
191 out = lang->iso639_2b && *lang->iso639_2b ? lang->iso639_2b :
192 lang->iso639_2;
193 break;
194 default:
195 break;
196 }
197 return out;
198}
199
200const char * get_subtitle_muxer(int source)
201{

Callers 1

avformatInitFunction · 0.85

Calls 1

lang_for_code2Function · 0.85

Tested by

no test coverage detected