summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c304be)
* allow to write SWFs with empty taglist
&obbox, &filename))
return NULL;
&obbox, &filename))
return NULL;
- if (!PY_CHECK_TYPE(obbox, &BBoxClass)) {
- obbox = f_BBox(0, obbox, 0);
- if(!obbox)
- return NULL;
+ if(obbox) {
+ if (!PY_CHECK_TYPE(obbox, &BBoxClass)) {
+ obbox = f_BBox(0, obbox, 0);
+ if(!obbox)
+ return NULL;
+ }
+ bbox = bbox_getSRECT(obbox);
- bbox = bbox_getSRECT(obbox);
memset(&swf->swf, 0, sizeof(SWF));
if(filename)
memset(&swf->swf, 0, sizeof(SWF));
if(filename)
swf->compressed = 1;
swf->firstTag = taglist_getTAGs(swfo->taglist);
swf->compressed = 1;
swf->firstTag = taglist_getTAGs(swfo->taglist);
- if(!swf->firstTag)
- return NULL;
+
+ /*if(!swf->firstTag)
+ return NULL;*/
// fix the file, in case it is empty or not terminated properly
{
// fix the file, in case it is empty or not terminated properly
{
static PyObject* swf_getattr(PyObject * self, char* a)
{
SWFObject*swf = (SWFObject*)self;
static PyObject* swf_getattr(PyObject * self, char* a)
{
SWFObject*swf = (SWFObject*)self;
if(!strcmp(a, "fps")) {
double fps = swf->swf.frameRate/256.0;
if(!strcmp(a, "fps")) {
double fps = swf->swf.frameRate/256.0;