search for: _ogg_realloc

Displaying 4 results from an estimated 4 matches for "_ogg_realloc".

2000 Nov 08
0
vq diffs
...#include "codebook.h" /* A few little utils for reading files */ @@ -41,8 +41,8 @@ if(!lbufsize){ lbufsize=1024; - linebuffer=_ogg_malloc(lbufsize); + linebuffer=(char*)_ogg_malloc(lbufsize); }else{ lbufsize*=2; - linebuffer=_ogg_realloc(linebuffer,lbufsize); + linebuffer=(char*)_ogg_realloc(linebuffer,lbufsize); } } @@ -179,6 +179,7 @@ codebook *codebook_load(char *filename){ - codebook *b=_ogg_calloc(1,sizeof(codebook)); - static_codebook *c=(static_codebook *)(b->c=_ogg_calloc(1,sizeof(static_codebook))...
2011 Nov 07
1
Out of memory handling?
Hi, As far as I see in libvorbis most of the places where _ogg_malloc(), _ogg_realloc and _ogg_calloc() is called the return value is not checked for out of memory condition. Is there any plan to change this? For my use-case the application is not allowed to crash. So if libvorbis can not handle this condition, I guess I would need to preallocate a large enough custom memory heap f...
2007 Aug 10
5
[Patch] Const correct tags functions
...is_dsp_state *v, vorbis_block *vb); --- lib/info.c (revision 13502) +++ lib/info.c (working copy) @@ -59,7 +59,7 @@ memset(vc,0,sizeof(*vc)); } -void vorbis_comment_add(vorbis_comment *vc,char *comment){ +void vorbis_comment_add(vorbis_comment *vc,const char *comment){ vc->user_comments=_ogg_realloc(vc->user_comments, (vc->comments+2)*sizeof(*vc->user_comments)); vc->comment_lengths=_ogg_realloc(vc->comment_lengths, @@ -71,7 +71,7 @@ vc->user_comments[vc->comments]=NULL; } -void vorbis_comment_add_tag(vorbis_comment *vc, char *tag, char *contents){ +void v...
2002 Aug 19
1
small error in Ogg Vorbis FAQ
"Ogg Vorbis uses the Ogg bistream format, and the correct extension is .ogg" -- http://www.xiph.org/ogg/vorbis/faq.html I'm guessing it should read 'bitstream'. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'