Fix two typos in RtpVp8Reader and test
PiperOrigin-RevId: 460662425
This commit is contained in:
parent
f9a39201aa
commit
40fd3ffa6c
@ -36,7 +36,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
/* package */ final class RtpVp8Reader implements RtpPayloadReader {
|
/* package */ final class RtpVp8Reader implements RtpPayloadReader {
|
||||||
private static final String TAG = "RtpVP8Reader";
|
private static final String TAG = "RtpVP8Reader";
|
||||||
|
|
||||||
/** VP9 uses a 90 KHz media clock (RFC7741 Section 4.1). */
|
/** VP8 uses a 90 KHz media clock (RFC7741 Section 4.1). */
|
||||||
private static final long MEDIA_CLOCK_FREQUENCY = 90_000;
|
private static final long MEDIA_CLOCK_FREQUENCY = 90_000;
|
||||||
|
|
||||||
private final RtpPayloadFormat payloadFormat;
|
private final RtpPayloadFormat payloadFormat;
|
||||||
|
@ -39,7 +39,7 @@ import org.junit.runner.RunWith;
|
|||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public final class RtpVp8ReaderTest {
|
public final class RtpVp8ReaderTest {
|
||||||
|
|
||||||
/** VP9 uses a 90 KHz media clock (RFC7741 Section 4.1). */
|
/** VP8 uses a 90 KHz media clock (RFC7741 Section 4.1). */
|
||||||
private static final long MEDIA_CLOCK_FREQUENCY = 90_000;
|
private static final long MEDIA_CLOCK_FREQUENCY = 90_000;
|
||||||
|
|
||||||
private static final byte[] PARTITION_1 = getBytesFromHexString("000102030405060708090A0B0C0D0E");
|
private static final byte[] PARTITION_1 = getBytesFromHexString("000102030405060708090A0B0C0D0E");
|
||||||
@ -61,7 +61,7 @@ public final class RtpVp8ReaderTest {
|
|||||||
new RtpPacket.Builder()
|
new RtpPacket.Builder()
|
||||||
.setTimestamp(PARTITION_1_RTP_TIMESTAMP)
|
.setTimestamp(PARTITION_1_RTP_TIMESTAMP)
|
||||||
.setSequenceNumber(40290)
|
.setSequenceNumber(40290)
|
||||||
.setMarker(false)
|
.setMarker(true)
|
||||||
.setPayloadData(Bytes.concat(getBytesFromHexString("00"), PARTITION_1_FRAGMENT_2))
|
.setPayloadData(Bytes.concat(getBytesFromHexString("00"), PARTITION_1_FRAGMENT_2))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user