Commit 0256d2a9 authored by Michael Smith's avatar Michael Smith
Browse files

Get preliminary header length correct (hopefully) when it's known.

svn path=/trunk/vorbis-tools/; revision=3754
parent 0e80df3d
......@@ -128,7 +128,7 @@ int write_prelim_header(OggVorbis_File *vf, FILE *out, ogg_int64_t knownlength)
int samplesize = bits;
if(knownlength && knownlength*bits/8*channels < size)
size = (unsigned int)knownlength*bits/8*channels;
size = (unsigned int)(knownlength*bits/8*channels+44) ;
memcpy(headbuf, "RIFF", 4);
WRITE_U32(headbuf+4, size-8);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment