git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01cdd1c
)
show compression info.
author
kramm
<kramm>
Sun, 21 Apr 2002 14:55:18 +0000
(14:55 +0000)
committer
kramm
<kramm>
Sun, 21 Apr 2002 14:55:18 +0000
(14:55 +0000)
src/swfdump.c
patch
|
blob
|
history
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
7ce9773
..
b5f8b30
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-423,7
+423,7
@@
int main (int argc,char ** argv)
#ifdef HAVE_STAT
fstat(f, &statbuf);
#ifdef HAVE_STAT
fstat(f, &statbuf);
- if(statbuf.st_size != swf.fileSize)
+ if(statbuf.st_size != swf.fileSize && !swf.compressed)
dumperror("Real Filesize (%d) doesn't match header Filesize (%d)",
statbuf.st_size, swf.fileSize);
#endif
dumperror("Real Filesize (%d) doesn't match header Filesize (%d)",
statbuf.st_size, swf.fileSize);
#endif
@@
-471,6
+471,8
@@
int main (int argc,char ** argv)
return 0;
}
printf("[HEADER] File version: %d\n", swf.fileVersion);
return 0;
}
printf("[HEADER] File version: %d\n", swf.fileVersion);
+ if(swf.compressed)
+ printf("[HEADER] File is compressed.\n");
printf("[HEADER] File size: %ld\n", swf.fileSize);
printf("[HEADER] Frame rate: %f\n",swf.frameRate/256.0);
printf("[HEADER] Frame count: %d\n",swf.frameCount);
printf("[HEADER] File size: %ld\n", swf.fileSize);
printf("[HEADER] Frame rate: %f\n",swf.frameRate/256.0);
printf("[HEADER] Frame count: %d\n",swf.frameCount);