mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -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…
x
Reference in New Issue
Block a user