Commit 0bf19734 by manisha_jajoo Committed by Manisha Jajoo

Add a missing break in RtspMediaTrack and update RtpPayloadFormat.java

parent f0d7d963
...@@ -46,9 +46,9 @@ public final class RtpPayloadFormat { ...@@ -46,9 +46,9 @@ public final class RtpPayloadFormat {
private static final String RTP_MEDIA_MPEG4_VIDEO = "MP4V-ES"; private static final String RTP_MEDIA_MPEG4_VIDEO = "MP4V-ES";
private static final String RTP_MEDIA_H264 = "H264"; private static final String RTP_MEDIA_H264 = "H264";
private static final String RTP_MEDIA_H265 = "H265"; private static final String RTP_MEDIA_H265 = "H265";
private static final String RTP_MEDIA_OPUS = "OPUS";
private static final String RTP_MEDIA_PCM_L8 = "L8"; private static final String RTP_MEDIA_PCM_L8 = "L8";
private static final String RTP_MEDIA_PCM_L16 = "L16"; private static final String RTP_MEDIA_PCM_L16 = "L16";
private static final String RTP_MEDIA_OPUS = "OPUS";
private static final String RTP_MEDIA_PCMA = "PCMA"; private static final String RTP_MEDIA_PCMA = "PCMA";
private static final String RTP_MEDIA_PCMU = "PCMU"; private static final String RTP_MEDIA_PCMU = "PCMU";
private static final String RTP_MEDIA_VP8 = "VP8"; private static final String RTP_MEDIA_VP8 = "VP8";
......
...@@ -189,6 +189,7 @@ import com.google.common.collect.ImmutableMap; ...@@ -189,6 +189,7 @@ import com.google.common.collect.ImmutableMap;
// the RTP timestamp is incremented with a 48000 Hz clock rate // the RTP timestamp is incremented with a 48000 Hz clock rate
// for all modes of Opus and all sampling rates. // for all modes of Opus and all sampling rates.
checkArgument(clockRate == OPUS_SAMPLING_RATE, "Invalid sampling rate"); checkArgument(clockRate == OPUS_SAMPLING_RATE, "Invalid sampling rate");
break;
case MimeTypes.VIDEO_MP4V: case MimeTypes.VIDEO_MP4V:
checkArgument(!fmtpParameters.isEmpty()); checkArgument(!fmtpParameters.isEmpty());
processMPEG4FmtpAttribute(formatBuilder, fmtpParameters); processMPEG4FmtpAttribute(formatBuilder, fmtpParameters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment