Regarding:
==================================
From: mechcommanderrei
Subject: [Swftools-common] swfextract file naming
Date: Fri, 19 Jan 2007 04:59:48 -0000
----------------------------------------------------------------------------
Currently, swfextract always names its output files "output" (ex.
output.swf, output.jpg, etc.), regardless of how many IDs you are extracting
at a time. This means that if you enter, for example:
swfextract -j 100, 101, 102 input.swf
The program creates an output.jpg file, then overwrites it twice, instead of
giving you three files.
==================================
Mech, your code fix is correct, but users who can't recompile can get the
correct output another way...
Workaround:
Looking at the code, the only time that the variable numextracts gets
incremented, is counting the number of different extraction options on the
command line.
So if you simply ask for an additional extraction option (an i, f, j, or p)
at the same time...
swfextract -i 6 -j 13,18-21 myfile.swf
...numextracts will now be greater than 1 and swfextract will generate the
desired multiple files for the extraction option with the id range.
Hope it helps,
Bruce