search for: vcedit_open

Displaying 5 results from an estimated 5 matches for "vcedit_open".

2004 Mar 06
3
access violation in ov_open using VC6
I passed a valid FILE* (from fopen() with "rb") and the address of an OggVorbis_File struct, but an access violation occured when ov_open is called. I have enabled the Multithreaded, but it still doesn't fix the problem. I look at the vorbis_comment.exe source and I see vcedit_open() function and other vcedit_*() functions everywhere. I am assuming that there is known issue with VC and ov_open that's why vorbis_comment is using the edited version. I don't know if I should use these functions or not. Or maybe I missed something? don't have the exact source code ri...
2004 Nov 22
1
Editing comments in Vorbis files...
...18n.h" int main() { FILE *oggFile; FILE *heym; vcedit_state *state; vorbis_comment *vc; if ((oggFile = fopen("InFile.ogg", "rb")) == NULL) exit(0); if ((heym = fopen("OutFile.ogg", "wb")) == NULL) exit(0); state = vcedit_new_state(); if (vcedit_open(state, oggFile) < 0) { printf("erreur\n"); exit(0); } //vc = vcedit_comments(state); vcedit_write(state, heym); vcedit_clear(state); fclose(oggFile); fclose(heym); return 0; } Any idea?? Gabriel Lavoie
2007 Feb 07
1
how to delete all comments?
okay all i want to do now is just DELETE any and all comments from a file. here's what I do: // open the file and get access to comments vcedit_open(i_vcStateP, 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 th...
2005 Nov 03
1
vcedit on non-vorbisI streams
...;ve been looking at modifying vcedit so it will work on Ogg streams containing primarily Vorbis data (i.e. first page is the Vorbis header, most pages are Vorbis and a few are something else e.g. metadata or lyrics). I've managed to get something that works by: 1. During the header opening in vcedit_open push non-Vorbis pages onto a buffer added to vcedit_state and write them out after the Vorbis bos, but before the 2nd and 3rd headers. This causes all bos to end up correctly at the start of the stream. It does shuffle non-bos pages before the end of the last Vorbis header about, but in a sensib...
2003 Aug 25
3
mem leak when writing ogg vorbis comments
...E * in=NULL, *out=NULL; char *buf=new char[1024]; // Read the initial tag in = fopen(szFilePath, "rb"); if (in == NULL) { // ... handle the failure case return FALSE; } state = vcedit_new_state(); if(vcedit_open(state, in) < 0) { // ... handle the failure case return FALSE; } // <removed all the stuff that fills the comment structure with the new values> // Write the file to another file in this directory. FindNextAvailableFileName(...