On 17/12/2012 12:11 PM, Derek Buitenhuis wrote: > + st->duration = frames * audio_size; Actually, how does this even work? Audio size is not the number of total samples, AFAIK. - Derek