| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |