mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

We currently enforce the skipping if the sample has a timestamp less than the start time. While this may be the default desired behavior for most implementations, it prevents an implementation from outputting a sample with such a timestamp. This change updates the logic to pre-fill the shouldBeSkipped flag based on the input timestamp, and only check this flag on the output buffer. None of the implementations in our library change timestamps of samples, so this is equivalent to the previous code. PiperOrigin-RevId: 629708873