X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fswfdump.c;h=49208ab8d56c3ec09dd495f6eb545e0ac46c6faf;hb=6e6c53e5b76e2d8e213cf84bb3acd412767cd1e2;hp=75ac80f0035f77b384ebfe083adbd18f5147dbcb;hpb=ac7ab52d6bea63bca0692cac4c32b9a4456b34a7;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index 75ac80f..49208ab 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -64,6 +64,7 @@ static struct options_t options[] = { {"e", "html"}, {"a", "action"}, {"t", "text"}, +{"s", "shapes"}, {"p", "placements"}, {"X", "width"}, {"Y", "height"}, @@ -71,7 +72,6 @@ static struct options_t options[] = { {"f", "frames"}, {"d", "hex"}, {"u", "used"}, -{"s", "shapes"}, {0,0} }; @@ -151,6 +151,7 @@ void args_callback_usage(char *name) printf("-e , --html Print out html code for embedding the file\n"); printf("-a , --action Disassemble action tags\n"); printf("-t , --text Show text fields (like swfstrings).\n"); + printf("-s , --shapes Show shape coordinates/styles\n"); printf("-p , --placements Show placement information\n"); printf("-X , --width Prints out a string of the form \"-X width\".\n"); printf("-Y , --height Prints out a string of the form \"-Y height\".\n"); @@ -622,7 +623,7 @@ void handleShape(TAG*tag, char*prefix) if(t < shape.numfillstyles) { printf(" | %-2d) %-18.18s", t+1, fillstyle2str(&shape.fillstyles[t])); } else { - printf(" "); + printf(" "); } if(t < shape.numlinestyles) { printf("%-2d) %s", t+1, linestyle2str(&shape.linestyles[t])); @@ -983,9 +984,9 @@ int main (int argc,char ** argv) } } if(nframe == frame) - printf(" %d (%s)", frame, timestring(frame*(256.0/(swf.frameRate+0.1)))); + printf(" %d (%s)", frame+1, timestring(frame*(256.0/(swf.frameRate+0.1)))); else - printf(" %d-%d (%s-%s)", frame, nframe, + printf(" %d-%d (%s-%s)", frame+1, nframe+1, timestring(frame*(256.0/(swf.frameRate+0.1))), timestring(nframe*(256.0/(swf.frameRate+0.1))) );