mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
1 changed files with 0 additions and 4 deletions
|
|
@ -144,10 +144,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||||
|
|
||||||
if (decoder == null) {
|
if (decoder == null) {
|
||||||
inputBuffer.timeUs -= streamStartPositionUs;
|
inputBuffer.timeUs -= streamStartPositionUs;
|
||||||
if (inputBuffer.timeUs < 0) {
|
|
||||||
inputBuffer.clear();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue