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 support for $id variable names and var x,y lists in slots
[swftools.git]
/
lib
/
modules
/
swftools.c
diff --git
a/lib/modules/swftools.c
b/lib/modules/swftools.c
index
cd57d6f
..
0a55645
100644
(file)
--- a/
lib/modules/swftools.c
+++ b/
lib/modules/swftools.c
@@
-30,7
+30,7
@@
SFIXED RFXSWF_SP(SFIXED a1,SFIXED a2,SFIXED b1,SFIXED b2)
{ S64 a = ((S64)a1*(S64)b1+(S64)a2*(S64)b2)>>16;
SFIXED result = (SFIXED)(a);
if(a!=result)
{ S64 a = ((S64)a1*(S64)b1+(S64)a2*(S64)b2)>>16;
SFIXED result = (SFIXED)(a);
if(a!=result)
- fprintf(stderr, "Warning: overflow in matrix multiplication");
+ fprintf(stderr, "Warning: overflow in matrix multiplication\n");
return result;
}
SFIXED RFXSWF_QFIX(int zaehler,int nenner) // bildet Quotient von zwei INTs in SFIXED
return result;
}
SFIXED RFXSWF_QFIX(int zaehler,int nenner) // bildet Quotient von zwei INTs in SFIXED
@@
-999,7
+999,7
@@
char swf_Relocate (SWF*swf, char*bitmap)
}
}
if(t==65536) {
}
}
if(t==65536) {
- fprintf(stderr, "swf_Relocate: Couldn't relocate: Out of IDs");
+ fprintf(stderr, "swf_Relocate: Couldn't relocate: Out of IDs\n");
return 0;
}
}
return 0;
}
}
@@
-1025,6
+1025,7
@@
char swf_Relocate (SWF*swf, char*bitmap)
PUT16(&tag->data[ptr[t]], id);
}
}
PUT16(&tag->data[ptr[t]], id);
}
}
+ free(ptr);
}
tag=tag->next;
}
}
tag=tag->next;
}
@@
-1057,6
+1058,7
@@
void swf_Relocate2(SWF*swf, int*id2id)
PUT16(&tag->data[ptr[t]], id);
}
}
PUT16(&tag->data[ptr[t]], id);
}
}
+ free(ptr);
}
}
}
}
}
}