X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fswf%2Fswf.c;h=27854cdcb5acafbcc75d3749c4a16702c7965160;hb=70c85e8a814e75b29883fc347a65f83af370249b;hp=a5f002fe9271c5afee8cc0574954cc055972c7ee;hpb=62e08cfab8504991d53578b26fab138dbdf0a205;p=swftools.git diff --git a/lib/swf/swf.c b/lib/swf/swf.c index a5f002f..27854cd 100644 --- a/lib/swf/swf.c +++ b/lib/swf/swf.c @@ -241,7 +241,7 @@ static map16_t* extractFrame(TAG*startTag, int frame_to_extract) map16_enumerate(depthmap, increaseAge, 0); } } - return 0; + return depthmap; } // ---- render handling ---- @@ -539,6 +539,7 @@ gfxdocument_t*swf_open(char*filename) i->width = (swf.movieSize.xmax - swf.movieSize.xmin) / 20; i->height = (swf.movieSize.ymax - swf.movieSize.ymin) / 20; + swf_doc->num_pages = swf.frameCount; swf_doc->internal = i; swf_doc->get = 0; swf_doc->destroy = swf_doc_destroy;