search for: internal_encode

Displaying 6 results from an estimated 6 matches for "internal_encode".

2009 Apr 12
9
invalid byte sequence utf-8 OR best option to sanitize content brought in with net::http? single non-utf character causes rails to crash
hi all, platform: debian lenny, ruby1.91.p0, passenger/apache-multithread, rails2.3 in vendor/postres and sql server via odbc. all current gems. i have legacy asp content on win2k servers that i wrap in rails controllers. this all worked great with ruby1.8, but now that we are dealing with encoded strings in ruby1.9, i am having page crashes randomly as users have cut and pasted high ascii code
2004 Aug 04
2
theora_decode_init bug
I found a bug in theora_decode_init when I was implementing the decoder. theora_decode_init should be zeroing the theora state structure right? memset(th, 0, sizeof(theora_state)); // Erik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20040805/26350ca4/attachment.htm
2004 Feb 06
0
Bug in src/player_example.c
...player; it didn't seem to affect the original player_example. I've now found the cause, which is indeed a bug in either player_example.c or libtheora itself. The example player declares a theora_state structure: theora_state td; Assumptions in libtheora assume that the element 'internal_encoder' (and maybe others) is initialised to NULL. This declaration doesn't guarantee that condition and this turned out to be the cause of problems I was experiencing in my player. A simple memset() did the trick; not the tidiest of solutions but I couldn't use theora_clear() from libth...
2008 Mar 31
1
Problem creating ogg comment header for theatrical/stage/disco lighting stream
...t;>24&0xFF, 8); } /* build the comment header packet from the passed metadata */ int libava_encode_comment(libava_state *t, libava_comment *tc, ogg_packet *op) { const char *vendor = libava_version_string(); const int vendor_length = strlen(vendor); CP_INSTANCE *cpi=(CP_INSTANCE *)(t->internal_encode); #ifndef LIBOGG2 oggpackB_reset(cpi->oggbuffer); #else oggpackB_writeinit(cpi->oggbuffer, cpi->oggbufferstate); #endif oggpackB_write(cpi->oggbuffer, 0x81, 8); _tp_writebuffer(cpi->oggbuffer, "libava", 6); _tp_writelsbint(cpi->oggbuffer, vendor_length); _tp_wri...
2010 Jul 01
25
Encoding problems with Rails 3 + Ruby 1.9.1 (big surprise)
I have kind of an interesting problem. I have a form wherein people enter information. Big surprise. If they enter any "weird" characters like ø or é or whatever, the form will submit and all is well. However, I have a select box for the state which, if you''re looking at Spain, has states like A Coruña, Cádiz and País Vasco. These are pulled from the database which is set to
2004 Aug 24
5
MMX/mmxext optimisations
quite some speed improvement indeed. attached the updated patch to apply to svn/trunk. j -------------- next part -------------- A non-text attachment was scrubbed... Name: theora-mmx.patch.gz Type: application/x-gzip Size: 8648 bytes Desc: not available Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20040824/5a5f2731/theora-mmx.patch-0001.bin