MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / print_buildconf

Function print_buildconf

fftools/opt_common.c:209–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209static void print_buildconf(int flags, int level)
210{
211 const char *indent = flags & INDENT ? " " : "";
212 char str[] = { FFMPEG_CONFIGURATION };
213 char *conflist, *remove_tilde, *splitconf;
214
215 // Change all the ' --' strings to '~--' so that
216 // they can be identified as tokens.
217 while ((conflist = strstr(str, " --")) != NULL) {
218 conflist[0] = '~';
219 }
220
221 // Compensate for the weirdness this would cause
222 // when passing 'pkg-config --static'.
223 while ((remove_tilde = strstr(str, "pkg-config~")) != NULL) {
224 remove_tilde[sizeof("pkg-config~") - 2] = ' ';
225 }
226
227 splitconf = strtok(str, "~");
228 av_log(NULL, level, "\n%sconfiguration:\n", indent);
229 while (splitconf != NULL) {
230 av_log(NULL, level, "%s%s%s\n", indent, indent, splitconf);
231 splitconf = strtok(NULL, "~");
232 }
233}
234
235void show_banner(int argc, char **argv, const OptionDef *options)
236{

Callers 1

show_buildconfFunction · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected