aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-sdp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c
index 3af4c44798..f16d91ff60 100644
--- a/epan/dissectors/packet-sdp.c
+++ b/epan/dissectors/packet-sdp.c
@@ -1753,14 +1753,16 @@ static void dissect_sdp_media_attribute(tvbuff_t *tvb, packet_info *pinfo, proto
media_format = 0;
if (g_ascii_strncasecmp(payload_type, "MCPTT", 5) != 0) {
if (g_ascii_strncasecmp(payload_type, "TBCP", 4) != 0) {
- if (!ws_strtou8(payload_type, NULL, &media_format) || media_format >= SDP_NO_OF_PT) {
- expert_add_info(pinfo, media_format_item, &ei_sdp_invalid_media_format);
- return;
- }
- /* Append encoding name to format if known */
- if (media_format) {
- proto_item_append_text(media_format_item, " [%s]",
- transport_info->encoding_name[media_format]);
+ if (g_ascii_strncasecmp(payload_type, "MCVideo", 7) != 0) {
+ if (!ws_strtou8(payload_type, NULL, &media_format) || media_format >= SDP_NO_OF_PT) {
+ expert_add_info(pinfo, media_format_item, &ei_sdp_invalid_media_format);
+ return;
+ }
+ /* Append encoding name to format if known */
+ if (media_format) {
+ proto_item_append_text(media_format_item, " [%s]",
+ transport_info->encoding_name[media_format]);
+ }
}
}
}