I'm using LAME in winLAME and encode audio samples using the lame_*
functions. I also use the ID3 functions to let LAME write ID3v2 tag. In
some cases I don't know the number of samples beforehand, so I don't set
gfp->num_samples. The function id3v2AddAudioDuration() now uses the default
value of MAX_U_32_NUM as number of samples and writes it to the TLEN field.
When played back with Windows Media Player, the file properties displays a
large time value, e.g. 27:03:11.
The workaround for this bug would be to leave the function when the
num_samples field isn't set. Code would look like:
if (gfp->num_samples == MAX_U_32_NUM)
return;
Nobody/Anonymous
Libraries
None
Public
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use