Do not drop negative timestamp video buffers during transmuxing

Prevents discarding video buffers with key frame which are required for decoding.

#cherrypick

PiperOrigin-RevId: 673375261
This commit is contained in:
rohks 2024-09-11 06:56:48 -07:00 committed by Copybara-Service
parent 8271a5f920
commit bb3d055191

View File

@ -144,10 +144,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
if (decoder == null) {
inputBuffer.timeUs -= streamStartPositionUs;
if (inputBuffer.timeUs < 0) {
inputBuffer.clear();
return true;
}
}
return false;
}