c2-codecs: handle duplicate in pts

Original Change:
https://android-review.googlesource.com/c/device/generic/goldfish-opengl/+/1721830

when csd0/csd1 changes, the new session can have
pts that is the same as the previous ones.

The expected behavior is to return work item back
to client using the right work index(which increase
monotonically btw)

Bug: 189234097
Test:
GtsExoPlayerTestCases

Change-Id: I1196c408615ea4df62f468e2dbdf7db582b2bff4
Merged-In: I1196c408615ea4df62f468e2dbdf7db582b2bff4
2 files changed