Fix indexing error in event log analyzer.

The bug was introduced in https://codereview.webrtc.org/2912113002.

BUG=webrtc:7731

Review-Url: https://codereview.webrtc.org/2920433002
Cr-Commit-Position: refs/heads/master@{#18370}
This commit is contained in:
terelius
2017-06-01 03:50:31 -07:00
committed by Commit Bot
parent 00b16f4dc8
commit 405f90c871

View File

@ -345,14 +345,14 @@ EventLogAnalyzer::EventLogAnalyzer(const ParsedRtcEventLog& log)
case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: {
std::vector<rtclog::StreamConfig> configs =
parsed_log_.GetVideoSendConfig(i);
for (size_t j = 0; j < configs.size(); j++) {
StreamId stream(configs[i].local_ssrc, kOutgoingPacket);
for (const auto& config : configs) {
StreamId stream(config.local_ssrc, kOutgoingPacket);
extension_maps[stream] =
RtpHeaderExtensionMap(configs[i].rtp_extensions);
RtpHeaderExtensionMap(config.rtp_extensions);
video_ssrcs_.insert(stream);
StreamId rtx_stream(configs[i].rtx_ssrc, kOutgoingPacket);
StreamId rtx_stream(config.rtx_ssrc, kOutgoingPacket);
extension_maps[rtx_stream] =
RtpHeaderExtensionMap(configs[i].rtp_extensions);
RtpHeaderExtensionMap(config.rtp_extensions);
video_ssrcs_.insert(rtx_stream);
rtx_ssrcs_.insert(rtx_stream);
}