| 207 | } |
| 208 | |
| 209 | static 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 | |
| 235 | void show_banner(int argc, char **argv, const OptionDef *options) |
| 236 | { |
no test coverage detected