Transformer: avoid retrieving the video decoded bytes
Decoded video frames can be large and there is no need to retrieve the corresponding ByteBuffer as we render the decoded frames on a surface for better performance. PiperOrigin-RevId: 405364950
This commit is contained in:
parent
1f3f22a709
commit
17d2f5a0b1
@ -305,7 +305,7 @@ import java.nio.ByteBuffer;
|
||||
|
||||
if (!isDecoderSurfacePopulated) {
|
||||
if (!waitingForPopulatedDecoderSurface) {
|
||||
if (decoder.getOutputBuffer() != null) {
|
||||
if (decoder.getOutputBufferInfo() != null) {
|
||||
decoder.releaseOutputBuffer(/* render= */ true);
|
||||
waitingForPopulatedDecoderSurface = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user