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:
parent
8271a5f920
commit
bb3d055191
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user