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

Function count_subtitles

test/test.c:3700–3717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3698}
3699
3700static int count_subtitles(char **subtracks)
3701{
3702 int subtitle_track_count = 0;
3703 if (subtracks != NULL)
3704 {
3705 int count = hb_str_vlen(subtracks);
3706 int ii;
3707 for (ii = 0; ii < count; ii++)
3708 {
3709 if (strcasecmp(subtracks[0], "scan") &&
3710 strcasecmp(subtracks[0], "none"))
3711 {
3712 subtitle_track_count++;
3713 }
3714 }
3715 }
3716 return subtitle_track_count;
3717}
3718
3719static int CheckOptions( int argc, char ** argv )
3720{

Callers 2

CheckOptionsFunction · 0.85
PreparePresetFunction · 0.85

Calls 1

hb_str_vlenFunction · 0.85

Tested by

no test coverage detected