From: kramm Date: Sun, 21 Apr 2002 14:55:18 +0000 (+0000) Subject: show compression info. X-Git-Tag: xpdf-0-92~41 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=0447b3e739a1e8d0d85cd692088368318ec36dcc;p=swftools.git show compression info. --- 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);