Skip to content

Commit 17d2f5a

Browse files
kim-vdeojw28
authored andcommitted
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
1 parent 1f3f22a commit 17d2f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerTranscodingVideoRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private boolean feedEncoderFromDecoder() {
305305

306306
if (!isDecoderSurfacePopulated) {
307307
if (!waitingForPopulatedDecoderSurface) {
308-
if (decoder.getOutputBuffer() != null) {
308+
if (decoder.getOutputBufferInfo() != null) {
309309
decoder.releaseOutputBuffer(/* render= */ true);
310310
waitingForPopulatedDecoderSurface = true;
311311
}

0 commit comments

Comments
 (0)