5 fprintf(stderr, "Show Table Of Contents\n"
6 "Usage: mpeg3show <opts> <path>\n"
7 " opts: -a show audio sample offsets\n"
8 " -i show audio index\n"
9 " -v show video frame offsets\n");
13 int main(int argc, char *argv[])
16 fprintf(stderr, "Show Table Of Contents\n"
17 "Usage: mpeg3show <path>\n");
23 for( i=1; i < argc; ++i ) {
25 if( *cp++ != '-' ) break;
28 case 'a': flags |= TOC_SAMPLE_OFFSETS; break;
29 case 'i': flags |= TOC_AUDIO_INDEX; break;
30 case 'v': flags |= TOC_FRAME_OFFSETS; break;
38 zmpeg3_t *file = new zmpeg3_t(argv[i]);
39 file->show_toc(flags);