Share

LAME (Lame Aint an MP3 Encoder)

Tracker: Bugs

5 Wrong length in ID3v2 tag when num_samples isn't set - ID: 2887359
Last Update: Tracker Item Submitted ( vividos )

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;


Michael Fink ( vividos ) - 2009-10-27 18:32

5

Open

None

Nobody/Anonymous

Libraries

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.