search for: vorbis_comment_query

Displaying 8 results from an estimated 8 matches for "vorbis_comment_query".

2007 Aug 10
5
[Patch] Const correct tags functions
...omment_init(vorbis_comment *vc); -extern void vorbis_comment_add(vorbis_comment *vc, char *comment); +extern void vorbis_comment_add(vorbis_comment *vc, const char *comment); extern void vorbis_comment_add_tag(vorbis_comment *vc, - char *tag, char *contents); -extern char *vorbis_comment_query(vorbis_comment *vc, char *tag, int count); -extern int vorbis_comment_query_count(vorbis_comment *vc, char *tag); + const char *tag, const char *contents); +extern char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count); +extern int vorbis_comment_query_cou...
2000 Oct 25
2
UTF-8 to ISO 8859-1 converter
I've got a bug pending for FreeAmp right now where the vorbis metadata plugin does not handle international characters right. The comments that are returned from vorbis_comment_query() are in UTF-8, but FreeAmp is ISO 8859-1. I've been looking for a UTF-8 --> ISO 8859-1 converter that is available for inclusion in a GPL/LGPL program and is reasonably small. There are many full blown packages out there that will do this, but I don't really feel like adding a meg to my...
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
2000 Jul 29
0
New comment interfaces
...t *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_query(). These give a nicer interface to the 'tag' system. vorbis_comment_add_tag() is basically the same as vorbis_comment_add(), except it takes a tag and the contents. vorbis_comment_query() searches for the given tag, and returns the nth instance (one of the arguments) of this tag - usually,...
2007 Mar 26
0
Logging album info for ogg-vorbis
...//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, "ARTIST", 0); if (comment)
2000 Oct 18
3
ov_comment spec
...g towards a mp3info like tool, OggInfo, which will surplant vorbiscomment in functionality, and also incorportate mp3info like featuers. Looking at existing vorbis api calls, i find: vorbis_comment_add() /* unsupervised string insertion */ vorbis_comment_add_tag() /* formated TAG=text insertion */ vorbis_comment_query() /* scans for matching tag (up to count duplicates) and returns the last one */ vorbis_comment_query_count() /* returns the number of matching TAG instances */ vorbis_comment_clear() /* obvious */ It seems to be allowing duplicate TAG identifies is less than optimal. I know there are instances w...
2015 Oct 12
2
Use of alloca in vorbis_comment_add_tag
Dear Vorbis devs, I'm Robert Kausch, author of fre:ac - free audio converter. Please consider using _ogg_malloc/_ogg_free in place of alloca in vorbis_comment_add_tag. alloca will cause undefined behaviour/crashing when it causes a stack overflow which can easily happen when adding cover art in a METADATA_BLOCK_PICTURE comment. I had a user trying to convert a FLAC file with a 2 MB
2002 Dec 30
0
vorbis_comment interface
..."const char*". Is it expected that this will change or was it defined like this for reason? void vorbis_comment_add(vorbis_comment *vc, char *comment); void vorbis_comment_add_tag(vorbis_comment *vc, char *tag, char *contents); char *vorbis_comment_query(vorbis_comment *vc, char *tag, int count); int vorbis_comment_query_count(vorbis_comment *vc, char *tag); <p>Thanks. <p> -- Kristian G. Kvilekval email:kris@cs.ucsb.edu office:(805)893-4276 http://www.cs.ucsb.edu/~kris --- >8 ---- List archives: http://www.xiph.org/archives...