media/libraries/exoplayer/src
tonihei 418edda285 Fix capacity overflow logic in findSampleAfter
The method was recently introduced and only searched for matching
samples up to index==length. However, SampleQueue uses a circular
array to index its data and the search should continue until
relativeStartIndex+length, while also handling the overflow
in the circular array.

The tests for seeking didn't cover these overflow cases yet
because they always started writing data in an empty SampleQueue.
This can be fixed by prewarming the queue with placeholder data
to force using the overflow logic in the various seek methods.

PiperOrigin-RevId: 555963011
2023-08-11 20:38:05 +00:00
..
androidTest Extend Player interface, overloading 4 device-volume methods with flags 2023-04-13 16:30:30 +01:00
main Fix capacity overflow logic in findSampleAfter 2023-08-11 20:38:05 +00:00
test Fix capacity overflow logic in findSampleAfter 2023-08-11 20:38:05 +00:00