tbtlr / gordon

An open source Flash™ runtime written in pure JavaScript
MIT License
1.8k stars 111 forks source link

and with an picture... #4

Open sevgraphiste opened 14 years ago

sevgraphiste commented 14 years ago

Hello! If the swf contains an image, it does not work... is it normal? thank you!

tbtlr commented 14 years ago

This definitely not an expected behavior. Could you please send me the affected SWF file?

ghostoy commented 13 years ago

handleDefineBits needs i++ just after parsing the JPEG erroneous header 0xff, 0xd9, 0xff, 0xd8. Otherwise data.substr(0, i - 4) will get substr(0, -1).