Index: tools/matlab/rtpAnalyze.m |
diff --git a/tools/matlab/rtpAnalyze.m b/tools/matlab/rtpAnalyze.m |
index eb0cb8f586ffa879151fa18b44ae94ff59c295fc..c51af9cca5b06d04bd9b0c2c01d330d5fa0ff7a7 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); |