Displaying 4 results from an estimated 4 matches for "vcedit_write".
2005 Nov 03
1
vcedit on non-vorbisI streams
...t the start
of the stream. It does shuffle non-bos pages
before the end of the last Vorbis header about,
but in a sensible stream the relative order of
pages from different codecs at this point
shouldn't matter. (data is primarily Vorbis,
and we haven't started reading it yet here)
2. In vcedit_write it was necessary to change
_fetch_next_packet to compare serial numbers
before checking eos on a new page, and to check
bos on encountering a page not matching the
Vorbis serial number, returning success and
setting only extrapage if the different serial
number did not start a new stream. vcedit_w...
2004 Nov 22
1
Editing comments in Vorbis files...
I tryed this piece of code to write a second file with the same comments
in it but the program always crash on vcedit_write()... I'm unable to
figure out why it is crashing. Compiled under Visual Stucio .NET 2003
with ogg.dll and vorbis.dll linked dynamically! vcomment doesn't crash
linked dynamically with ogg.dll and vorbis.dll
#include <stdio.h>
#include <stdlib.h>
#include "vcedit.h"...
2007 Feb 07
1
how to delete all comments?
...i_fileP);
i_commentsP = vcedit_comments(i_vcStateP);
// now delete all existing comments
vorbis_comment_clear(i_commentsP); <-- is this the correct way??
vorbis_comment_init(i_commentsP); <-- do i need to do this since
it's already clear??
// now update the changes, is this correct??
vcedit_write(i_vcStateP, i_fileP);
vcedit_clear(i_vcStateP);
however, this does not delete the comments. here's what my file
looks like AFTER running the above code: (non-ascii stuff deleted so
you can see what's there)
OggS
vorbis
OggS
vorbis
Xiph.Org libVorbis I 20020717
TITLE=
ARTIST=Buddy Hol...
2003 Aug 25
3
mem leak when writing ogg vorbis comments
...n this directory.
FindNextAvailableFileName(strTempFileInOldDir);
out = fopen(strTempFileInOldDir, "wb");
if(out == NULL){
// ... handle the failure case
return FALSE;
}
/* write out the modified stream */
if(vcedit_write(state, out) < 0)
{
// ... handle the failure case
return FALSE;
}
if (in) { fclose (in); in = NULL;}
if (out) { fclose (out); out = NULL; }
vcedit_clear(state);
state = NULL;
// Try to rename the file to...