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

Side by Side Diff: media/cast/rtp_receiver/rtp_parser/rtp_parser.cc

Issue 214273003: [Cast] Remove AudioDecoder's dependency on WebRTC, and refactor/clean-up AudioReceiver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h" 5 #include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h"
6 6
7 #include "base/big_endian.h" 7 #include "base/big_endian.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "media/cast/cast_defines.h" 9 #include "media/cast/cast_defines.h"
10 #include "media/cast/rtp_receiver/rtp_receiver.h" 10 #include "media/cast/rtp_receiver/rtp_receiver.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 data_ptr += kRtpCastHeaderLength; 105 data_ptr += kRtpCastHeaderLength;
106 data_length -= kRtpCastHeaderLength; 106 data_length -= kRtpCastHeaderLength;
107 } else { 107 } else {
108 data_ptr += kRtpCastHeaderLength - 1; 108 data_ptr += kRtpCastHeaderLength - 1;
109 data_length -= kRtpCastHeaderLength - 1; 109 data_length -= kRtpCastHeaderLength - 1;
110 } 110 }
111 111
112 if (rtp_header->max_packet_id < rtp_header->packet_id) 112 if (rtp_header->max_packet_id < rtp_header->packet_id)
113 return false; 113 return false;
114 114
115 data_callback_->OnReceivedPayloadData(data_ptr, data_length, rtp_header); 115 data_callback_->OnReceivedPayloadData(data_ptr, data_length, *rtp_header);
116 return true; 116 return true;
117 } 117 }
118 118
119 } // namespace cast 119 } // namespace cast
120 } // namespace media 120 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698