mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Increase the buffer size for TestUtil.addAudioDecoders/Encoders
This is a step towards unifying ShadowMediaCodecConfig for ExoPlayer and Transcoding tests. The buffer size for ExoPlayer's CodecConfig is set to 150_000. This is because some test media has samples larger than 100kB. We can increase the buffer size for Transcoding-related codec configurations. PiperOrigin-RevId: 734297632
This commit is contained in:
parent
cfbd6c5493
commit
bf2e338fc2
@ -156,8 +156,8 @@ public final class TestUtil {
|
||||
addCodec(
|
||||
mimeType,
|
||||
new ShadowMediaCodec.CodecConfig(
|
||||
/* inputBufferSize= */ 100_000,
|
||||
/* outputBufferSize= */ 100_000,
|
||||
/* inputBufferSize= */ 150_000,
|
||||
/* outputBufferSize= */ 150_000,
|
||||
/* codec= */ (in, out) -> out.put(in)),
|
||||
/* colorFormats= */ ImmutableList.of(),
|
||||
/* isDecoder= */ true);
|
||||
@ -175,8 +175,8 @@ public final class TestUtil {
|
||||
public static void addAudioEncoders(String... mimeTypes) {
|
||||
addAudioEncoders(
|
||||
new ShadowMediaCodec.CodecConfig(
|
||||
/* inputBufferSize= */ 100_000,
|
||||
/* outputBufferSize= */ 100_000,
|
||||
/* inputBufferSize= */ 150_000,
|
||||
/* outputBufferSize= */ 150_000,
|
||||
/* codec= */ (in, out) -> out.put(in)),
|
||||
mimeTypes);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user