compute pts according to the audio codec