MuxerWrapper: Fix spelling mistake in method name

PiperOrigin-RevId: 640838741
This commit is contained in:
tofunmi 2024-06-06 03:29:24 -07:00 committed by Copybara-Service
parent f238db8208
commit cd5a638e43
2 changed files with 8 additions and 8 deletions

View file

@ -230,7 +230,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
*/
@Nullable
@VisibleForTesting(otherwise = PRIVATE)
public static List<byte[]> getMostComatibleInitializationData(
public static List<byte[]> getMostCompatibleInitializationData(
Format existingVideoTrackFormat, Format newVideoTrackFormat) {
if (existingVideoTrackFormat.initializationDataEquals(newVideoTrackFormat)) {
return existingVideoTrackFormat.initializationData;
@ -391,7 +391,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
.build();
if (muxerMode == MUXER_MODE_MUX_PARTIAL) {
List<byte[]> mostCompatibleInitializationData =
getMostComatibleInitializationData(format, checkNotNull(appendVideoFormat));
getMostCompatibleInitializationData(format, checkNotNull(appendVideoFormat));
if (mostCompatibleInitializationData == null) {
throw new AppendTrackFormatException("Switching to MUXER_MODE_APPEND will fail.");
}

View file

@ -449,7 +449,7 @@ public class MuxerWrapperTest {
.setInitializationData(ImmutableList.of(new byte[] {1, 2, 3, 4}))
.build();
assertThat(MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat))
assertThat(MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat))
.isNull();
}
@ -467,7 +467,7 @@ public class MuxerWrapperTest {
.build();
List<byte[]> initializationData =
MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat);
MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat);
assertThat(initializationData).hasSize(1);
Byte[] expectedInitializationData = new Byte[] {1, 2, 3, 4};
@ -491,7 +491,7 @@ public class MuxerWrapperTest {
.build();
List<byte[]> initializationData =
MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat);
MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat);
assertThat(initializationData).hasSize(1);
Byte[] expectedInitializationData = new Byte[] {1, 2, 3, 4};
@ -517,7 +517,7 @@ public class MuxerWrapperTest {
.build();
List<byte[]> initializationData =
MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat);
MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat);
assertThat(initializationData).hasSize(2);
Byte[] expectedInitializationDataSps = new Byte[] {0, 0, 0, 1, 103, 100, 0, 41};
@ -547,7 +547,7 @@ public class MuxerWrapperTest {
ImmutableList.of(new byte[] {0, 0, 0, 1, 103, 100, 0, 41}, new byte[] {0, 0, 0, 1}))
.build();
assertThat(MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat))
assertThat(MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat))
.isNull();
}
@ -565,7 +565,7 @@ public class MuxerWrapperTest {
ImmutableList.of(new byte[] {0, 0, 0, 1, 103, 100, 0, 41}, new byte[] {0, 0, 0, 1}))
.build();
assertThat(MuxerWrapper.getMostComatibleInitializationData(existingFormat, otherFormat))
assertThat(MuxerWrapper.getMostCompatibleInitializationData(existingFormat, otherFormat))
.isNull();
}