git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added fix for the "last frame emtpy" problem.
[swftools.git]
/
src
/
swfdump.c
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
a7ea3bb
..
49208ab
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-623,7
+623,7
@@
void handleShape(TAG*tag, char*prefix)
if(t < shape.numfillstyles) {
printf(" | %-2d) %-18.18s", t+1, fillstyle2str(&shape.fillstyles[t]));
} else {
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]));
}
if(t < shape.numlinestyles) {
printf("%-2d) %s", t+1, linestyle2str(&shape.linestyles[t]));
@@
-984,9
+984,9
@@
int main (int argc,char ** argv)
}
}
if(nframe == frame)
}
}
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
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)))
);
timestring(frame*(256.0/(swf.frameRate+0.1))),
timestring(nframe*(256.0/(swf.frameRate+0.1)))
);