search for: _vorbis_pack_comment

Displaying 3 results from an estimated 3 matches for "_vorbis_pack_comment".

2008 Sep 12
4
[Patch] New function of libvorbis
...#include "os.h" + #define GENERAL_VENDOR_STRING "Xiph.Org libVorbis 1.2.1RC2" + #define ENCODE_VENDOR_STRING "Xiph.Org libVorbis I 20080501" + /* helpers */ static int ilog2(unsigned int v){ int ret=0; *************** *** 457,464 **** } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ ! char temp[]="Xiph.Org libVorbis I 20080501"; ! int bytes = strlen(temp); /* preamble */ oggpack_write(opb,0x03,8); --- 460,466 ---- } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ ! int bytes =...
2003 Sep 09
0
Should the vendor tag be updated for 1.0.1?
...lib/info.c =================================================================== RCS file: /usr/local/cvsroot/vorbis/lib/info.c,v retrieving revision 1.61 diff -u -r1.61 info.c --- lib/info.c 11 Oct 2002 11:14:41 -0000 1.61 +++ lib/info.c 9 Sep 2003 12:19:32 -0000 @@ -416,7 +416,7 @@ } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ - char temp[]="Xiph.Org libVorbis I 20020717"; + char temp[]="Xiph.Org libVorbis I 20030902"; int bytes = strlen(temp); /* preamble */ Index: ogginfo/ogginfo2.c =================================================================...
2001 Oct 13
1
small bug
...bsequent headers would be unfindable when reading. And reading might cause a sort of crashing behaviour for some folks. The fix is trivial: use a version of _v_writestring for the 8-bit clean input that accepts a byte-count argument. (around line 44 of info.c) and supply the byte-count argument in _vorbis_pack_comment (around line 428) (The vendor string uses strlen, so cannot possibly have an embedded NUL it seems, so that bit is fine) Note the _v_readstring (correctly, for comment headers w/ embedded NULs) has a byte-count, and should work just fine when unpacking correctly-formed headers (but would would bo...