diff options
| -rw-r--r-- | omxdevice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/omxdevice.c b/omxdevice.c index a48c1f7..e42dd7f 100644 --- a/omxdevice.c +++ b/omxdevice.c @@ -286,6 +286,10 @@ int cOmxDevice::PlayAudio(const uchar *Data, int Length, uchar Id) } int64_t ptsDiff = PtsDiff(m_audioPts & MAX33BIT, pts); + + if ((m_audioPts & ~MAX33BIT) != (m_audioPts + ptsDiff & ~MAX33BIT)) + DBG("audio PTS wrap around"); + m_audioPts += ptsDiff; // keep track of direction in case of trick speed |
