search for: comment_length

Displaying 9 results from an estimated 9 matches for "comment_length".

Did you mean: comment_lengths
2006 Aug 24
1
AMD64 bug
...vendor, len); tc->vendor[len]='\0'; - _tp_readlsbint(opb,(long *) &tc->comments); + _tp_readlsbint(opb,&tmp); + tc->comments=tmp; if(tc->comments<0)goto parse_err; tc->user_comments=_ogg_calloc(tc->comments,sizeof(*tc->user_comments)); tc->comment_lengths=_ogg_calloc(tc->comments,sizeof(*tc->comment_lengths));
2006 Aug 29
0
Bug#383793: libtheora0: not 64-bit clean
...vendor, len); tc->vendor[len]='\0'; - _tp_readlsbint(opb,(long *) &tc->comments); + _tp_readlsbint(opb,&tmp); + tc->comments=tmp; if(tc->comments<0)goto parse_err; tc->user_comments=_ogg_calloc(tc->comments,sizeof(*tc->user_comments)); tc->comment_lengths=_ogg_calloc(tc->comments,sizeof(*tc->comment_lengths));
2008 Mar 31
1
Problem creating ogg comment header for theatrical/stage/disco lighting stream
...int(cpi->oggbuffer, vendor_length); _tp_writebuffer(cpi->oggbuffer, vendor, vendor_length); _tp_writelsbint(cpi->oggbuffer, tc->comments); if(tc->comments){ int i; for(i=0;i<tc->comments;i++){ if(tc->user_comments[i]){ _tp_writelsbint(cpi->oggbuffer,tc->comment_lengths[i]); _tp_writebuffer(cpi->oggbuffer,tc->user_comments[i],tc->comment_lengths[i]); }else{ oggpackB_write(cpi->oggbuffer,0,32); } } } #ifndef LIBOGG2 op->packet=oggpackB_get_buffer(cpi->oggbuffer); #else op->packet=oggpackB_writebuffer(cpi->oggbuffer); #en...
2007 Aug 10
5
[Patch] Const correct tags functions
...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 vorbis_comment_add_tag(vorbis_comment *vc, const char *tag, const char *contents){ char *comment=alloca(s...
2007 Mar 15
2
Logging album info for ogg-vorbis
Hi, i just joined the list. I was wondering if anyone would be interested in a change to icecast that logs album info as well as ARTST and TRACK. I have made the changes to the source code and it's working fine. If there is any interest, I could look into making it an addition to the code. Let me know. thanks, -- Aaron -------------- next part -------------- An HTML attachment was
2004 Aug 06
0
No subject
typedef struct vorbis_comment{ /* unlimited user comment fields. libvorbis writes 'libvorbis' whatever vendor is set to in encode */ char **user_comments; int *comment_lengths; int comments; char *vendor; } vorbis_comment; 'user_comments' is the associative array of sorts that the usual comments are. 'vendor' is just a string that's also stored there. Read "Vorbis Illuminated" (www.mathdogs.com/vorbis-illuminated/) for how it'...
2004 Aug 06
0
No subject
typedef struct vorbis_comment{ /* unlimited user comment fields. libvorbis writes 'libvorbis' whatever vendor is set to in encode */ char **user_comments; int *comment_lengths; int comments; char *vendor; } vorbis_comment; 'user_comments' is the associative array of sorts that the usual comments are. 'vendor' is just a string that's also stored there. Read "Vorbis Illuminated" (www.mathdogs.com/vorbis-illuminated/) for how it'...
2000 Jul 29
0
New comment interfaces
I just committed a bunch of work on the comment interfaces in libvorbis. Importantly, there is now a way to deal with non-0-terminated strings being returned in the comment structure. THe vorbis_comment struct has an additional member - int *comment_lengths. Unless you're editing the struct directly (i.e. not using vorbis_comment_add(), etc.), no changes will be needed to applications (but this WILL break binary compatibility with shared libraries, I think.) Additionally, two extra calls were added: vorbis_comment_add_tag() and vorbis_comment_qu...
2007 Mar 26
0
Logging album info for ogg-vorbis
....comments; + ogg_info->metadata_len = source_vorbis->vc.comments; //space for tag separators + for(i=0; i < source_vorbis->vc.comments; ++i) { + ogg_info->metadata[i] = strdup(source_vorbis->vc.user_comments[i]); + ogg_info->metadata_len += source_vorbis->vc.comment_lengths[i]; + } free (ogg_info->title); comment = vorbis_comment_query (&source_vorbis->vc, "TITLE", 0); @@ -573,6 +590,7 @@ else ogg_info->title = NULL; + free (ogg_info->artist); comment = vorbis_comment_query (&source_vorbis->vc,...