diff options
author | henrik.lundin <henrik.lundin@webrtc.org> | 2015-08-18 04:46:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-18 11:46:49 +0000 |
commit | d84dcbd2ecd28bd57e1f17bc00dc6390cbbd0cda (patch) | |
tree | b4d5cfc1e41f4be0b462668ead097033a1fbe5a6 /tools | |
parent | 141c5951f4beda868797c2746002a4b1b267ab2a (diff) | |
download | webrtc-d84dcbd2ecd28bd57e1f17bc00dc6390cbbd0cda.tar.gz |
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}
Diffstat (limited to 'tools')
-rw-r--r-- | tools/matlab/rtpAnalyze.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/matlab/rtpAnalyze.m b/tools/matlab/rtpAnalyze.m index eb0cb8f586..c51af9cca5 100644 --- a/tools/matlab/rtpAnalyze.m +++ b/tools/matlab/rtpAnalyze.m @@ -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); |