ok, last night I checked in changes that I think should totally fix
the problem.

before, the process routines would encode a frame as soon as it
got a complete block.  so it could not really tell when it had
reached the end of the input and would rely on the total samples
estimate to set the EOS flag.  but this is bad because it is an
estimate and sometimes even unknown.

so now the process routines 'overread' by one sample, i.e. wait until
there is one more sample than a complete block before encoding it.
the last block is handled by FLAC__stream_encoder_finish()

Josh



 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
_______________________________________________
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to