I think that you could be right, but I don't think that someone would submit code with that type of error so there must be something that I am missing also. When I decode MP3s and encode them to cd audio, I always use mpg123 to rip the MP3 to standard out and then use sox to encode the raw data to a cdr format.