When built without libsndfile, lame does internal wave parsing.
In case of wave files with data chunk > 2 GB, the current 32bit parsing routine wrongly return a negative number (it reads a two's complement number) so the number of samples is wrong. In turn, this causes the total frame number estimation to be wrong (<0) and the encoding histogram never shows the total frame progress.
The attached patch fixes this.
let me guess. you are talking about 64 bit compiles?
Yes I am, on x86 debian this bug doesn't appear.
Anyway, I see your latest commit r6426 fixed this bug.
This ticket may be closed.
Thanks for pointing out this issue!