From 0447b3e739a1e8d0d85cd692088368318ec36dcc Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 21 Apr 2002 14:55:18 +0000 Subject: [PATCH] show compression info. --- src/swfdump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/swfdump.c b/src/swfdump.c index 7ce9773..b5f8b30 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -423,7 +423,7 @@ int main (int argc,char ** argv) #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 @@ -471,6 +471,8 @@ int main (int argc,char ** argv) 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); -- 1.7.10.4