From f7ff5d59a452eb7e2ff67be33a2a2bc88e90764a Mon Sep 17 00:00:00 2001 From: olly Date: Fri, 11 Sep 2020 12:28:00 +0100 Subject: [PATCH] Make BatchBufferTest allocate less memory Setting to 2x BATCH_SIZE_BYTES PiperOrigin-RevId: 331124129 --- .../google/android/exoplayer2/mediacodec/BatchBufferTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/BatchBufferTest.java b/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/BatchBufferTest.java index d281b363ca..6579e8ee06 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/BatchBufferTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/BatchBufferTest.java @@ -33,7 +33,7 @@ import org.junit.runner.RunWith; public final class BatchBufferTest { /** Bigger than {@code BatchBuffer.BATCH_SIZE_BYTES} */ - private static final int BUFFER_SIZE_LARGER_THAN_BATCH_SIZE_BYTES = 100 * 1000 * 1000; + private static final int BUFFER_SIZE_LARGER_THAN_BATCH_SIZE_BYTES = 6 * 1000 * 1024; /** Smaller than {@code BatchBuffer.BATCH_SIZE_BYTES} */ private static final int BUFFER_SIZE_MUCH_SMALLER_THAN_BATCH_SIZE_BYTES = 100;