From cbb86769670b73f7f7641c0cca94b2667db801d6 Mon Sep 17 00:00:00 2001 From: Shraddha Basantwani Date: Mon, 11 Jul 2022 16:05:34 +0530 Subject: [PATCH 1/2] RTP : Update VP8 Reader Test Set the fixed clock rate in VP8 Reader Test Change-Id: I0bdedc803bb892d93fde2a027a01cb49a48597ef --- .../media3/exoplayer/rtsp/reader/RtpVp8ReaderTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/exoplayer_rtsp/src/test/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8ReaderTest.java b/libraries/exoplayer_rtsp/src/test/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8ReaderTest.java index 8bd2e347b49..49fc039484c 100644 --- a/libraries/exoplayer_rtsp/src/test/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8ReaderTest.java +++ b/libraries/exoplayer_rtsp/src/test/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8ReaderTest.java @@ -75,10 +75,9 @@ public final class RtpVp8ReaderTest { new RtpPayloadFormat( new Format.Builder() .setSampleMimeType(MimeTypes.VIDEO_VP8) - .setSampleRate(500000) .build(), /* rtpPayloadType= */ 97, - /* clockRate= */ 48_000, + /* clockRate= */ 90_000, /* fmtpParameters= */ ImmutableMap.of()); @Rule From c37a767fdfc2f7e0b9eb1ad7ae6f864c93950712 Mon Sep 17 00:00:00 2001 From: Shraddha Basantwani Date: Fri, 15 Jul 2022 09:45:50 +0530 Subject: [PATCH 2/2] RTP : Update VP8 Reader Reset fragmentedSampleSizeBytes to LENGTH_UNSET. Change-Id: Ie8a66702a7e26b5e240a7163dac6343531f1b49f --- .../androidx/media3/exoplayer/rtsp/reader/RtpVp8Reader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8Reader.java b/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8Reader.java index eb5e5899019..35731cc8f74 100644 --- a/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8Reader.java +++ b/libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVp8Reader.java @@ -212,7 +212,7 @@ private void outputSampleMetadataForFragmentedPackets() { fragmentedSampleSizeBytes, /* offset= */ 0, /* cryptoData= */ null); - fragmentedSampleSizeBytes = 0; + fragmentedSampleSizeBytes = C.LENGTH_UNSET; sampleTimeUsOfFragmentedSample = C.TIME_UNSET; gotFirstPacketOfVp8Frame = false; }