Hi, Can anyone provide me some reference of how to implement tts based clock recovery for 192 byte transport stream.My clock recovery API take two interger inputs,one is time from receiver(tts/pcr) and second is local clock time.With tts I am not able to figure out how do I handle tts wraparound and convert it to integer (without overflowing it), to pass it to clock recovery API.

Also I am getting garbled values of tts sometimes. I have tried this with multiple streams.Is it a common issue with tts?