search for: _v_writestring

Displaying 2 results from an estimated 2 matches for "_v_writestring".

2008 Sep 12
4
[Patch] New function of libvorbis
...,0x03,8); --- 460,466 ---- } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ ! int bytes = strlen(ENCODE_VENDOR_STRING); /* preamble */ oggpack_write(opb,0x03,8); *************** *** 466,472 **** /* vendor */ oggpack_write(opb,bytes,32); ! _v_writestring(opb,temp, bytes); /* comments */ --- 468,474 ---- /* vendor */ oggpack_write(opb,bytes,32); ! _v_writestring(opb,ENCODE_VENDOR_STRING, bytes); /* comments */ *************** *** 647,650 **** --- 649,656 ---- if(granulepos>=0) return((double)granulep...
2001 Oct 13
1
small bug
The comments strings in vorbis are to be 8-bit clean. info.c _v_writestring is not 8-bit clean. This leads to a malformed comment header packet if the comment has an embedded Null: 0:0 hdr2 03 76 6F 72 62 69 73 20 00 00 00 58 69 70 68 6F .vorbis ...Xipho 16:10 70 68 6F 72 75 73 20 6C 69 62 56 6F 72 62 69 73 phorus l ibVorbis 32:20 20 49 20 32 30 30 3...