| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |    2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 
|    3  * |    3  * | 
|    4  *  Use of this source code is governed by a BSD-style license |    4  *  Use of this source code is governed by a BSD-style license | 
|    5  *  that can be found in the LICENSE file in the root of the source |    5  *  that can be found in the LICENSE file in the root of the source | 
|    6  *  tree. An additional intellectual property rights grant can be found |    6  *  tree. An additional intellectual property rights grant can be found | 
|    7  *  in the file PATENTS.  All contributing project authors may |    7  *  in the file PATENTS.  All contributing project authors may | 
|    8  *  be found in the AUTHORS file in the root of the source tree. |    8  *  be found in the AUTHORS file in the root of the source tree. | 
|    9  */ |    9  */ | 
|   10  |   10  | 
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  187                rtp_header->header.timestamp); |  187                rtp_header->header.timestamp); | 
|  188   rtp_header->type.Audio.numEnergy = rtp_header->header.numCSRCs; |  188   rtp_header->type.Audio.numEnergy = rtp_header->header.numCSRCs; | 
|  189   num_energy_ = rtp_header->type.Audio.numEnergy; |  189   num_energy_ = rtp_header->type.Audio.numEnergy; | 
|  190   if (rtp_header->type.Audio.numEnergy > 0 && |  190   if (rtp_header->type.Audio.numEnergy > 0 && | 
|  191       rtp_header->type.Audio.numEnergy <= kRtpCsrcSize) { |  191       rtp_header->type.Audio.numEnergy <= kRtpCsrcSize) { | 
|  192     memcpy(current_remote_energy_, |  192     memcpy(current_remote_energy_, | 
|  193            rtp_header->type.Audio.arrOfEnergy, |  193            rtp_header->type.Audio.arrOfEnergy, | 
|  194            rtp_header->type.Audio.numEnergy); |  194            rtp_header->type.Audio.numEnergy); | 
|  195   } |  195   } | 
|  196  |  196  | 
 |  197   if (first_packet_received_()) { | 
 |  198     LOG(LS_INFO) << "Received first audio RTP packet"; | 
 |  199   } | 
 |  200  | 
|  197   return ParseAudioCodecSpecific(rtp_header, |  201   return ParseAudioCodecSpecific(rtp_header, | 
|  198                                  payload, |  202                                  payload, | 
|  199                                  payload_length, |  203                                  payload_length, | 
|  200                                  specific_payload.Audio, |  204                                  specific_payload.Audio, | 
|  201                                  is_red); |  205                                  is_red); | 
|  202 } |  206 } | 
|  203  |  207  | 
|  204 int RTPReceiverAudio::GetPayloadTypeFrequency() const { |  208 int RTPReceiverAudio::GetPayloadTypeFrequency() const { | 
|  205   CriticalSectionScoped lock(crit_sect_.get()); |  209   CriticalSectionScoped lock(crit_sect_.get()); | 
|  206   if (last_received_g722_) { |  210   if (last_received_g722_) { | 
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  373     // only one frame in the RED strip the one byte to help NetEq |  377     // only one frame in the RED strip the one byte to help NetEq | 
|  374     return data_callback_->OnReceivedPayloadData( |  378     return data_callback_->OnReceivedPayloadData( | 
|  375         payload_data + 1, payload_length - 1, rtp_header); |  379         payload_data + 1, payload_length - 1, rtp_header); | 
|  376   } |  380   } | 
|  377  |  381  | 
|  378   rtp_header->type.Audio.channel = audio_specific.channels; |  382   rtp_header->type.Audio.channel = audio_specific.channels; | 
|  379   return data_callback_->OnReceivedPayloadData( |  383   return data_callback_->OnReceivedPayloadData( | 
|  380       payload_data, payload_length, rtp_header); |  384       payload_data, payload_length, rtp_header); | 
|  381 } |  385 } | 
|  382 }  // namespace webrtc |  386 }  // namespace webrtc | 
| OLD | NEW |