rtpAnalyze matlab tool: filter out RTCP packets

This change relates to the matlab tool rtpAnalyze. With this change,
RTP packets with payload types 72 through 76 are removed. In IETF
RFC3551, section "Payload Type Definitions", this range is marked as
reserved so that RTCP and RTP packets can be reliably distinguished.

BUG=webrtc:2692
TBR=tina.legrand@webrtc.org
NOTRY=true

Review URL: https://codereview.webrtc.org/1284423006

Cr-Commit-Position: refs/heads/master@{#9724}
This commit is contained in:
henrik.lundin
2015-08-18 04:46:46 -07:00
committed by Commit bot
parent 141c5951f4
commit d84dcbd2ec

View File

@ -17,6 +17,18 @@ function rtpAnalyze( input_file )
[SeqNo,TimeStamp,ArrTime,Size,PT,M,SSRC] = importfile(input_file);
%% Filter out RTCP packets.
% These appear as RTP packets having payload types 72 through 76.
ix = not(ismember(PT, 72:76));
fprintf('Removing %i RTCP packets\n', length(SeqNo) - sum(ix));
SeqNo = SeqNo(ix);
TimeStamp = TimeStamp(ix);
ArrTime = ArrTime(ix);
Size = Size(ix);
PT = PT(ix);
M = M(ix);
SSRC = SSRC(ix);
%% Find streams.
[uSSRC, ~, uix] = unique(SSRC);