first commit
This commit is contained in:
21
main.c
Normal file
21
main.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#define MP4ISTRUNC_IMPL
|
||||
#include "mp4istrunc.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int ret=0;
|
||||
int count = 0;
|
||||
int i;
|
||||
for(i = 1; i < argc; i++)
|
||||
{
|
||||
if(mp4trunc_istrunc(argv[i])) {
|
||||
fprintf(stderr,"File %s was truncated\n", argv[i]);
|
||||
ret = 1;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr,"Files that were truncated %i\n", count);
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user