If one frame is split into several buffers.
The timestamp of the first buffer is valid, others are invalid.
TSManagerGetLastTimeStamp() will try to get the last timestamp of frame.
it may get a invalid timestamp. and this will output some wrong timestamp.
so ignore these invalid timestamp
Signed-off-by: ming_qian <ming.qian@nxp.com>
TSMReceivedEntry *e;
while ((size > 0) && (e = rctl->head)) {
- ts = ((e->used) ? (TSM_TIMESTAMP_NONE) : (e->ts));
+ if (TSM_TS_IS_VALID(e->ts))
+ ts = ((e->used) ? (TSM_TIMESTAMP_NONE) : (e->ts));
TSM_VERBOSE("ts get: %u:%02u:%02u.%09u\n",
TSM_TIME_H(ts),