From 30c3613f2fae705a284284794b5367ad7c7374ae Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 20 Feb 2025 22:59:23 +0100 Subject: Improved RTP dissection with EVS and other mobile voice codecs --- example/reader_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 6656143f6..7362321aa 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1216,7 +1216,6 @@ static void serialize_monitoring_metadata(struct ndpi_flow_info *flow) case NDPI_PROTOCOL_STUN: case NDPI_PROTOCOL_DTLS: case NDPI_PROTOCOL_SRTP: - ndpi_serialize_start_of_block(&flow->ndpi_flow_serializer, "stun"); if(flow->stun.mapped_address.num_aps > 0) { @@ -1638,7 +1637,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl } if(is_ndpi_proto(flow, NDPI_PROTOCOL_RTP)) - flow->rtp.payload_type = flow->ndpi_flow->protos.rtp.payload_type; + memcpy(&flow->rtp, &flow->ndpi_flow->protos.rtp, sizeof(flow->rtp)); ndpi_snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), -- cgit v1.2.3