Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: tools/matlab/rtpAnalyze.m

Issue 1284423006: rtpAnalyze matlab tool: filter out RTCP packets (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698