dump.c
上传用户:luping1608
上传日期:2007-01-06
资源大小:38k
文件大小:1k
- #include "quicktime.h"
- main(int argc, char *argv[])
- {
- quicktime_t *file;
- int result = 0;
-
- if(argc < 2)
- {
- printf("Need a movie.n");
- exit(1);
- }
- if(!(file = quicktime_open(argv[1], 1, 0)))
- {
- printf("Open failedn");
- exit(1);
- }
- quicktime_dump(file);
- //while(!result)
- //{
- // result = quicktime_read_atom(file);
- // if(!result)
- // {
- // quicktime_skip_atom(file);
- // printf("%c%c%c%c %ldn", file->atom.type[0], file->atom.type[1], file->atom.type[2], file->atom.type[3], file->atom.end);
- // }
- //};
-
- quicktime_close(file);
- }