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:
caada7c
)
removed a few instances of SWAP32
author
Matthias Kramm
<kramm@quiss.org>
Tue, 2 Mar 2010 21:38:19 +0000
(13:38 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Tue, 2 Mar 2010 21:38:19 +0000
(13:38 -0800)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
d9444d6
..
278e504
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-1186,8
+1186,7
@@
TAG * swf_ReadTag(reader_t*reader, TAG * prev)
if (len==0x3f)
{
- if (reader->read(reader, &len, 4) != 4) return NULL;
- len = SWAP32(len);
+ len = reader_readU32(reader);
}
if (id==ST_DEFINESPRITE) len = 2*sizeof(U16);
@@
-1264,14
+1263,7
@@
int swf_WriteTag2(writer_t*writer, TAG * t)
return -1;
}
- len = SWAP32(len);
- if (writer->write(writer,&len,4)!=4)
- {
- #ifdef DEBUG_RFXSWF
- fprintf(stderr,"WriteTag() failed: Long Header (2).\n");
- #endif
- return -1;
- }
+ writer_writeU32(writer, len);
}
if (t->data)