Add a missing break in RtspMediaTrack and update RtpPayloadFormat.java

This commit is contained in:
manisha_jajoo 2022-04-21 11:11:03 +05:30 committed by Manisha Jajoo
parent f0d7d96309
commit 0bf197341d
2 changed files with 2 additions and 1 deletions

View File

@ -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";

View File

@ -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);