jpemartins / speex.js

Speex codec in Javascript. Mirror from https://code.ua.pt/projects/speex-js
214 stars 63 forks source link

fixed a bug in the ogg muxer that would throw 'RangeError: Maximum call ... #7

Open stnelso2 opened 10 years ago

stnelso2 commented 10 years ago

...stack size exceeded' on large files.

The String.fromCharCode.apply method on line 6558, of speex.js in dist throws an error when data[0] is too large. I added the function pack to stringify the char array and avoid the stack range error.

jpemartins commented 10 years ago

Great! Would you mind changing src/ogg.js ? dist/speex.js is generated from files within src.

Thanks!