git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
65b85c1
)
swfextract now uses the reloc functions from rfxswflib.
author
kramm
<kramm>
Tue, 4 Jun 2002 15:54:04 +0000
(15:54 +0000)
committer
kramm
<kramm>
Tue, 4 Jun 2002 15:54:04 +0000
(15:54 +0000)
src/swfextract.c
patch
|
blob
|
history
diff --git
a/src/swfextract.c
b/src/swfextract.c
index
1ed064f
..
a9e60e9
100644
(file)
--- a/
src/swfextract.c
+++ b/
src/swfextract.c
@@
-13,7
+13,6
@@
#include "../lib/rfxswf.h"
#include "../lib/args.h"
#include "../lib/log.h"
#include "../lib/rfxswf.h"
#include "../lib/args.h"
#include "../lib/log.h"
-#include "reloc.h"
#ifdef HAVE_ZLIB_H
#ifdef HAVE_LIBZ
#include "zlib.h"
#ifdef HAVE_ZLIB_H
#ifdef HAVE_LIBZ
#include "zlib.h"
@@
-178,7
+177,7
@@
void idcallback(void*data)
void enumerateIDs(TAG*tag, void(*callback)(void*))
{
void enumerateIDs(TAG*tag, void(*callback)(void*))
{
- U8*data;
+/* U8*data;
int len = tag->len;
if(tag->len>=64) {
len += 6;
int len = tag->len;
if(tag->len>=64) {
len += 6;
@@
-196,6
+195,13
@@
void enumerateIDs(TAG*tag, void(*callback)(void*))
memcpy(&data[2], tag->data, tag->len);
}
map_ids_mem(data, len, callback);
memcpy(&data[2], tag->data, tag->len);
}
map_ids_mem(data, len, callback);
+ */
+ int num = swf_GetNumUsedIDs(tag);
+ int *ptr = malloc(sizeof(int)*num);
+ int t;
+ swf_GetUsedIDs(tag, ptr);
+ for(t=0;t<num;t++)
+ callback(&tag->data[ptr[t]]);
}
void extractTag(SWF*swf, char*filename)
}
void extractTag(SWF*swf, char*filename)