User Tools

Site Tools


tech:multimedia:avi_parser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech:multimedia:avi_parser [2010/11/19 08:33]
admin
tech:multimedia:avi_parser [2014/11/10 08:22] (current)
Line 22: Line 22:
     int (*parser)(FILE *fp, const avitag_t *tag);     int (*parser)(FILE *fp, const avitag_t *tag);
 } parser_map_t;​ } parser_map_t;​
- + 
 +int null_parser(FILE *fp, const avitag_t* tag); 
 parser_map_t parser_list[] =  parser_map_t parser_list[] = 
 { {
Line 129: Line 130:
     }     }
     return;     return;
 +}
 +
 +int main(int argc, char**argv)
 +{
 +    FILE *fp; 
 +
 +    if (argc <= 1)
 +    {
 +        printf("​Usage:​ %s filename",​ argv[0]);
 +        return 0;
 +    }
 +
 +    fp = fopen(argv[1],​ "​wb"​);​
 +    if (fp == NULL)
 +    {
 +        printf("​Error in opening file %s", argv[1]);
 +        return -1;
 +    }
 +
 +    parse_riff(fp);​
 +    fclose(fp);
 +
 +    return 0;
 } }
 </​code>​ </​code>​
tech/multimedia/avi_parser.txt · Last modified: 2014/11/10 08:22 (external edit)