From: kramm Date: Sun, 7 Nov 2004 19:32:14 +0000 (+0000) Subject: let SHOWFRAME tags print out the correct number of the frame they show. X-Git-Tag: release-0-6-3~200 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=1429055118de769a62d7eafc00504ebb25c70c16 let SHOWFRAME tags print out the correct number of the frame they show. --- diff --git a/src/swfdump.c b/src/swfdump.c index a7ea3bb..f44f6b2 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -984,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))) );