27 static void print_sequence(
const char *p,
int l,
int indent)
30 for (i = 0; i < l; i++)
32 printf(
"%*s", indent-l*2,
"");
35 int main(
int argc,
char **argv)
38 char *filename = argv[1];
44 ret =
av_file_map(filename, &file_buf, &file_buf_size, 0, NULL);
49 endp = file_buf + file_buf_size;
56 print_sequence(p0, l, 20);
57 if (code != UINT32_MAX) {
58 printf(
"%-10d 0x%-10X %-5d ", code, code, l);
60 if (*p0 ==
'\n') printf(
"\\n\n");
61 else printf (
"%.*s\n", l, p0);
63 printf(
"invalid code range\n");
66 printf(
"invalid sequence\n");