Lines Matching refs:fntemplate
45 char fntemplate[PATH_MAX];
67 strncpy(fntemplate, argv[1], PATH_MAX-1);
69 strncpy(fntemplate, strrchr(argv[1], '/')+1, PATH_MAX-1);
70 if (strrchr(fntemplate, '.'))
71 *strrchr(fntemplate, '.') = '\0';
72 if (strchr(fntemplate, '%')) {
76 if (strlen(fntemplate) + sizeof(PKTFILESUFF) >= PATH_MAX-1) {
80 strcat(fntemplate, PKTFILESUFF);
81 printf("FNTEMPLATE: '%s'\n", fntemplate);
102 snprintf(pktfilename, PATH_MAX-1, fntemplate, pktnum, pkt.stream_index, pkt.pts, pkt.size, (pkt.flags & AV_PKT_FLAG_KEY)?'K':'_');